新建帖子主题条过长

This commit is contained in:
yanxd 2014-02-24 16:39:06 +08:00
parent bc7471bcb7
commit f64ea263ca
2 changed files with 29 additions and 10 deletions

View File

@ -1,22 +1,23 @@
<% <%
request.headers['REQUEST_URI'] = "" if request.headers['REQUEST_URI'].nil? 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 @nav_dispaly_course_label = 1
elsif (request.headers['REQUEST_URI'].match(/projects/)) elsif (realUrl.match(/projects/))
@nav_dispaly_project_label = 1 @nav_dispaly_project_label = 1
elsif (request.headers['REQUEST_URI'].match(/users/)) elsif (realUrl.match(/users/))
@nav_dispaly_user_label = 1 @nav_dispaly_user_label = 1
elsif (request.headers['REQUEST_URI'].match(/contest/)) elsif (realUrl.match(/contest/))
@nav_dispaly_contest_label = 1 @nav_dispaly_contest_label = 1
elsif (request.headers['REQUEST_URI'].match(/calls/)) elsif (realUrl.match(/calls/))
@nav_dispaly_bid_label = 1 @nav_dispaly_bid_label = 1
elsif (request.headers['REQUEST_URI'].match(/forums/)) elsif (realUrl.match(/forums/))
@nav_dispaly_forum_label = 1 @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_course_label = 1
@nav_dispaly_project_label = 1 @nav_dispaly_project_label = 1
@nav_dispaly_contest_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_course_all_label = 1
@nav_dispaly_teacher_all_label = 1 @nav_dispaly_teacher_all_label = 1
@nav_dispaly_forum_label = 1 @nav_dispaly_forum_label = 1

View File

@ -1,8 +1,26 @@
<!-- <h1>New memo</h1> --> <!-- <h1>New memo</h1> -->
<%= javascript_include_tag "ckeditor/ckeditor.js" %> <%= 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> <h3><%=l(:label_memo_new)%></h3>
<div class="box tabular" > <div class="box tabular">
<%= render :partial => 'memos/topic_form' %> <div style="width:780px">
<%= render :partial => 'memos/topic_form' %>
</div>
<%= link_to l(:button_back), forum_path(@forum) %> <%= link_to l(:button_back), forum_path(@forum) %>
</div> </div>