To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / projects / settings / _boards.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (1.24 KB)

1 0:513646585e45 Chris
<% if @project.boards.any? %>
2
<table class="list">
3 909:cbb26bc654de Chris
  <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 0:513646585e45 Chris
<% @project.boards.each do |board|
11 909:cbb26bc654de Chris
  next if board.new_record? %>
12
  <tr class="<%= cycle 'odd', 'even' %>">
13 0:513646585e45 Chris
    <td><%=h board.name %></td>
14
    <td><%=h board.description %></td>
15
    <td align="center">
16
    <% if authorize_for("boards", "edit") %>
17 909:cbb26bc654de Chris
      <%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %>
18 0:513646585e45 Chris
    <% end %>
19
    </td>
20
    <td class="buttons">
21 909:cbb26bc654de Chris
      <%= 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 0:513646585e45 Chris
    </td>
24 909:cbb26bc654de Chris
  </tr>
25 0:513646585e45 Chris
<% end %>
26 909:cbb26bc654de Chris
  </tbody>
27 0:513646585e45 Chris
</table>
28
<% else %>
29
<p class="nodata"><%= l(:label_no_data) %></p>
30
<% end %>
31
32 909:cbb26bc654de Chris
<p><%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %></p>