To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / settings / _boards.html.erb @ 918:04114f36670d
History | View | Annotate | Download (1.24 KB)
| 1 |
<% if @project.boards.any? %>
|
|---|---|
| 2 |
<table class="list"> |
| 3 |
<thead><tr> |
| 4 |
<th><%= l(:label_board) %></th> |
| 5 |
<th><%= l(:field_description) %></th> |
| 6 |
<th></th> |
| 7 |
<th></th> |
| 8 |
</tr></thead> |
| 9 |
<tbody>
|
| 10 |
<% @project.boards.each do |board|
|
| 11 |
next if board.new_record? %>
|
| 12 |
<tr class="<%= cycle 'odd', 'even' %>"> |
| 13 |
<td><%=h board.name %></td> |
| 14 |
<td><%=h board.description %></td> |
| 15 |
<td align="center"> |
| 16 |
<% if authorize_for("boards", "edit") %>
|
| 17 |
<%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %>
|
| 18 |
<% end %>
|
| 19 |
</td>
|
| 20 |
<td class="buttons"> |
| 21 |
<%= link_to_if_authorized l(:button_edit), {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}, :class => 'icon icon-edit' %>
|
| 22 |
<%= link_to_if_authorized l(:button_delete), {:controller => 'boards', :action => 'destroy', :project_id => @project, :id => board}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
|
| 23 |
</td>
|
| 24 |
</tr>
|
| 25 |
<% end %>
|
| 26 |
</tbody>
|
| 27 |
</table>
|
| 28 |
<% else %>
|
| 29 |
<p class="nodata"><%= l(:label_no_data) %></p> |
| 30 |
<% end %>
|
| 31 |
|
| 32 |
<p><%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %></p> |