##// END OF EJS Templates
code format cleanup app/views/settings/_repositories.html.erb...
Toshi MARUYAMA -
r12334:373082fcbfb0
parent child
Show More
@@ -90,11 +90,39
90 <tbody>
90 <tbody>
91 <% @commit_update_keywords.each do |rule| %>
91 <% @commit_update_keywords.each do |rule| %>
92 <tr class="commit-keywords">
92 <tr class="commit-keywords">
93 <td><%= select_tag "settings[commit_update_keywords][if_tracker_id][]", options_for_select([[l(:label_all), ""]] + Tracker.sorted.all.map {|t| [t.name, t.id.to_s]}, rule['if_tracker_id']) %></td>
93 <td>
94 <td><%= text_field_tag "settings[commit_update_keywords][keywords][]", rule['keywords'], :size => 30 %></td>
94 <%= select_tag(
95 <td><%= select_tag "settings[commit_update_keywords][status_id][]", options_for_select([["", 0]] + IssueStatus.sorted.all.collect{|status| [status.name, status.id.to_s]}, rule['status_id']) %></td>
95 "settings[commit_update_keywords][if_tracker_id][]",
96 <td><%= select_tag "settings[commit_update_keywords][done_ratio][]", options_for_select([["", ""]] + (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] }, rule['done_ratio']) %></td>
96 options_for_select(
97 <td class="buttons"><%= link_to image_tag('delete.png'), '#', :class => 'delete-commit-keywords' %></td>
97 [[l(:label_all), ""]] +
98 Tracker.sorted.all.map {|t| [t.name, t.id.to_s]},
99 rule['if_tracker_id'])
100 ) %>
101 </td>
102 <td>
103 <%= text_field_tag("settings[commit_update_keywords][keywords][]",
104 rule['keywords'], :size => 30) %>
105 </td>
106 <td>
107 <%= select_tag("settings[commit_update_keywords][status_id][]",
108 options_for_select(
109 [["", 0]] +
110 IssueStatus.sorted.all.
111 collect{|status| [status.name, status.id.to_s]},
112 rule['status_id'])
113 ) %>
114 </td>
115 <td>
116 <%= select_tag("settings[commit_update_keywords][done_ratio][]",
117 options_for_select(
118 [["", ""]] +
119 (0..10).to_a.collect {|r| ["#{r*10} %", "#{r*10}"] },
120 rule['done_ratio'])
121 ) %>
122 </td>
123 <td class="buttons">
124 <%= link_to(image_tag('delete.png'), '#', :class => 'delete-commit-keywords') %>
125 </td>
98 </tr>
126 </tr>
99 <% end %>
127 <% end %>
100 <tr>
128 <tr>
@@ -102,7 +130,7
102 <td><em class="info"><%= l(:text_comma_separated) %></em></td>
130 <td><em class="info"><%= l(:text_comma_separated) %></em></td>
103 <td></td>
131 <td></td>
104 <td></td>
132 <td></td>
105 <td class="buttons"><%= link_to image_tag('add.png'), '#', :class => 'add-commit-keywords' %></td>
133 <td class="buttons"><%= link_to(image_tag('add.png'), '#', :class => 'add-commit-keywords') %></td>
106 </tr>
134 </tr>
107 </tbody>
135 </tbody>
108 </table>
136 </table>
General Comments 0
You need to be logged in to leave comments. Login now