新建帖子主题条过长
This commit is contained in:
parent
bc7471bcb7
commit
f64ea263ca
|
@ -1,22 +1,23 @@
|
|||
<%
|
||||
request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil?
|
||||
if (request.headers['REQUEST_URI'].match(/project\/course/))
|
||||
realUrl = request.original_url
|
||||
if (realUrl.match(/project\/course/))
|
||||
@nav_dispaly_course_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/projects/))
|
||||
elsif (realUrl.match(/projects/))
|
||||
@nav_dispaly_project_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/users/))
|
||||
elsif (realUrl.match(/users/))
|
||||
@nav_dispaly_user_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/contest/))
|
||||
elsif (realUrl.match(/contest/))
|
||||
@nav_dispaly_contest_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/calls/))
|
||||
elsif (realUrl.match(/calls/))
|
||||
@nav_dispaly_bid_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/forums/))
|
||||
elsif (realUrl.match(/forums/))
|
||||
@nav_dispaly_forum_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/[^projects]\/course[^\.]/))
|
||||
elsif (realUrl.match(/[^projects]\/course[^\.]/))
|
||||
@nav_dispaly_course_label = 1
|
||||
@nav_dispaly_project_label = 1
|
||||
@nav_dispaly_contest_label = 1
|
||||
elsif (request.headers['REQUEST_URI'].match(/course\.trustie\.net/))
|
||||
elsif (realUrl.match(/course\.trustie\.net/))
|
||||
@nav_dispaly_course_all_label = 1
|
||||
@nav_dispaly_teacher_all_label = 1
|
||||
@nav_dispaly_forum_label = 1
|
||||
|
|
|
@ -1,8 +1,26 @@
|
|||
<!-- <h1>New memo</h1> -->
|
||||
<%= javascript_include_tag "ckeditor/ckeditor.js" %>
|
||||
<div class="top-content">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="info_font" style="width: 240px; color: #15bccf">软件项目托管社区</td>
|
||||
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
||||
<td rowspan="2" width="250px">
|
||||
<div class="top-content-search">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 8px"><%= link_to "forge.trustie.net/forums", forums_path %></td>
|
||||
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to '公共贴吧', :controller => 'forums', :action => 'index' %> > <%=link_to @forum.name %></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<h3><%=l(:label_memo_new)%></h3>
|
||||
<div class="box tabular" >
|
||||
<%= render :partial => 'memos/topic_form' %>
|
||||
<div class="box tabular">
|
||||
<div style="width:780px">
|
||||
<%= render :partial => 'memos/topic_form' %>
|
||||
</div>
|
||||
|
||||
<%= link_to l(:button_back), forum_path(@forum) %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue