| 1 |
<%= render :partial => "projects/ac_project_header", :locals => { :tab => PRJ_TAB_WIKI, |
| 2 |
:subtab => PRJ_TAB_WIKI_LIST, |
| 3 |
:project => @project, |
| 4 |
:pagetitle => @title } %> |
| 5 |
|
| 6 |
<%= div_formattedtext_open %> |
| 7 |
|
| 8 |
<table class='public'> |
| 9 |
|
| 10 |
<tr> |
| 11 |
<th width='<%= STYLE_TABLE_COL_WIDTH_ID %>'>ID</th> |
| 12 |
<th><%= @project.title %> Wiki Pages</th> |
| 13 |
<% if @is_member %> |
| 14 |
<th width='<%= STYLE_TABLE_COL_WIDTH_STATUS %>'>Status</th> |
| 15 |
<th width='180'>Slug</th> |
| 16 |
<% end %> |
| 17 |
<th width='<%= STYLE_TABLE_COL_WIDTH_VIEWS %>'>Views</th> |
| 18 |
<th width='100'>Format</th> |
| 19 |
<th width='<%= STYLE_TABLE_COL_WIDTH_DDMMYYHHMM %>'>Created</th> |
| 20 |
<% if @is_member %> |
| 21 |
<th colspan='2' width='<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT.to_i * 2 %>'></th> |
| 22 |
<% end %> |
| 23 |
</tr> |
| 24 |
|
| 25 |
<% for wiki in @wikis %> |
| 26 |
<tr> |
| 27 |
<td><%= wiki.id %></td> |
| 28 |
<td><%= link_to wiki.title, project_wiki_path(@project.slug, wiki.slug) %></td> |
| 29 |
<% if @is_member %> |
| 30 |
<td><%= wiki.status.to_s.capitalize %></td> |
| 31 |
<td>/<%= wiki.slug %></td> |
| 32 |
<% end %> |
| 33 |
<td><%= wiki.views.to_s %></td> |
| 34 |
<td><%= wiki.format.to_s.capitalize %></td> |
| 35 |
<td><%= format_datetime_ddmmyyhhmm(wiki.created_at) %></td> |
| 36 |
<% if @is_member %> |
| 37 |
<td width=<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT %>><%= link_to("Edit", edit_project_wiki_path(@project.slug, wiki.slug)) %></td> |
| 38 |
<td width=<%= STYLE_TABLE_COL_WIDTH_ACTION_SHORT %>><%= link_to("Del.", project_wiki_path(@project.slug, wiki.id), :method => :delete) if wiki.status != :deleted %></td> |
| 39 |
<% end %> |
| 40 |
</tr> |
| 41 |
<% end %> |
| 42 |
|
| 43 |
</table> |
| 44 |
|
| 45 |
|
| 46 |
<%= div_formattedtext_close %> |
| 47 |
|
| 48 |
<%= render :partial => "projects/ac_project_footer" %> |