Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (39 sloc) 1.546 kB
1fc1936 @huacnlee 主风格加入,管理后台功能基本完成
authored
1 <% content_for :sitemap do %>
399b982 @xdite cpanel topics 翻譯
xdite authored
2 <span class="current"><%= t("cpanel.menu.topics")%></span>
1fc1936 @huacnlee 主风格加入,管理后台功能基本完成
authored
3 <% end %>
399b982 @xdite cpanel topics 翻譯
xdite authored
4 <h1><%= t("cpanel.topic_list")%></h1>
5520cba @huacnlee update to Rails3 and created tables
authored
5
1fc1936 @huacnlee 主风格加入,管理后台功能基本完成
authored
6 <table class="grid">
7 <tr class="head">
8d4c450 @huacnlee Fix cpanel
authored
8 <td class="first">ID</td>
56372af @huacnlee Suggest topic feature added.
authored
9 <td style="width:300px">Title</td>
1fc1936 @huacnlee 主风格加入,管理后台功能基本完成
authored
10 <td>Node</td>
11 <td>User</td>
2e9482f @huacnlee Add pagination to Control Panel list
authored
12 <td>Replies</td>
13 <td>at</td>
56372af @huacnlee Suggest topic feature added.
authored
14 <td style="width:140px"></td>
5520cba @huacnlee update to Rails3 and created tables
authored
15 </tr>
16
17 <% @topics.each do |topic| %>
63ac287 @huacnlee SoftDelete for Topic/Reply;
authored
18 <tr class="<%= 'deleted' if !topic.deleted_at.blank? %>">
8d4c450 @huacnlee Fix cpanel
authored
19 <td class="first"><%= topic.id %></td>
20 <td><%= truncate(topic.title,:length => 30) %></td>
1fc1936 @huacnlee 主风格加入,管理后台功能基本完成
authored
21 <td><%= topic.node.name if topic.node %></td>
121e2c6 @huacnlee Remove name from User, use login to instead it.
authored
22 <td><%= topic.user.login if topic.user %></td>
5520cba @huacnlee update to Rails3 and created tables
authored
23 <td><%= topic.replies_count %></td>
2e9482f @huacnlee Add pagination to Control Panel list
authored
24 <td><%= l topic.created_at,:format => :short %></td>
56372af @huacnlee Suggest topic feature added.
authored
25 <td>
26 <% if !topic.suggested_at.blank? %>
399b982 @xdite cpanel topics 翻譯
xdite authored
27 <%= link_to t("common.un_top"), unsuggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
56372af @huacnlee Suggest topic feature added.
authored
28 <% else %>
399b982 @xdite cpanel topics 翻譯
xdite authored
29 <%= link_to t("common.place_top"), suggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
56372af @huacnlee Suggest topic feature added.
authored
30 <% end %>
399b982 @xdite cpanel topics 翻譯
xdite authored
31 <%= link_to t("common.edit"), edit_cpanel_topic_path(topic) %>
1952469 @huacnlee Control Panel deleted topic revert feature.
authored
32 <% if topic.deleted_at.blank? %>
33 <%= link_to t("common.delete"), cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :delete %>
34 <% else %>
35 <%= link_to t("common.undelete"), undestroy_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
36 <% end %>
37 </td>
38
5520cba @huacnlee update to Rails3 and created tables
authored
39 </tr>
40 <% end %>
41 </table>
4c8af44 @huacnlee Use bootstrap-will_paginate, and upgrade will_paginate to 3.0.2;
authored
42 <%= will_paginate @topics %>
Something went wrong with that request. Please try again.