##// END OF EJS Templates
show "no data" label when there's nothing to display on changelog and roadmap...
Jean-Philippe Lang -
r252:ddd0796e403d
parent child
Show More
@@ -1,28 +1,30
1 <h2><%=l(:label_change_log)%></h2>
1 <h2><%=l(:label_change_log)%></h2>
2
2
3 <div>
3 <div>
4
4
5 <div class="rightbox" style="width:140px;">
5 <div class="rightbox" style="width:140px;">
6 <% form_tag do %>
6 <% form_tag do %>
7 <p><strong><%=l(:label_tracker_plural)%></strong></p>
7 <p><strong><%=l(:label_tracker_plural)%></strong></p>
8 <% @trackers.each do |tracker| %>
8 <% @trackers.each do |tracker| %>
9 <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
9 <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
10 <%= tracker.name %><br />
10 <%= tracker.name %><br />
11 <% end %>
11 <% end %>
12 <p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
12 <p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
13 <% end %>
13 <% end %>
14 </div>
14 </div>
15
15
16 <% if @fixed_issues.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
17
16 <% ver_id = nil
18 <% ver_id = nil
17 @fixed_issues.each do |issue| %>
19 @fixed_issues.each do |issue| %>
18 <% unless ver_id == issue.fixed_version_id %>
20 <% unless ver_id == issue.fixed_version_id %>
19 <% if ver_id %></ul><% end %>
21 <% if ver_id %></ul><% end %>
20 <h3 class="icon22 icon22-package"><%= issue.fixed_version.name %></h3>
22 <h3 class="icon22 icon22-package"><%= issue.fixed_version.name %></h3>
21 <p><%= format_date(issue.fixed_version.effective_date) %><br />
23 <p><%= format_date(issue.fixed_version.effective_date) %><br />
22 <%=h issue.fixed_version.description %></p>
24 <%=h issue.fixed_version.description %></p>
23 <ul>
25 <ul>
24 <% ver_id = issue.fixed_version_id
26 <% ver_id = issue.fixed_version_id
25 end %>
27 end %>
26 <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %></li>
28 <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %></li>
27 <% end %>
29 <% end %>
28 </div> No newline at end of file
30 </div>
@@ -1,26 +1,28
1 <h2><%=l(:label_roadmap)%></h2>
1 <h2><%=l(:label_roadmap)%></h2>
2
2
3 <div>
3 <div>
4
4
5 <div class="rightbox" style="width:140px;">
5 <div class="rightbox" style="width:140px;">
6 <% form_tag do %>
6 <% form_tag do %>
7 <p><strong><%=l(:label_tracker_plural)%></strong></p>
7 <p><strong><%=l(:label_tracker_plural)%></strong></p>
8 <% @trackers.each do |tracker| %>
8 <% @trackers.each do |tracker| %>
9 <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
9 <%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %>
10 <%= tracker.name %><br />
10 <%= tracker.name %><br />
11 <% end %>
11 <% end %>
12 <p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
12 <p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
13 <% end %>
13 <% end %>
14 </div>
14 </div>
15
15
16 <% if @versions.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
17
16 <% @versions.each do |version| %>
18 <% @versions.each do |version| %>
17 <h3 class="icon22 icon22-package"><%= version.name %></h3>
19 <h3 class="icon22 icon22-package"><%= version.name %></h3>
18 <p><%= format_date(version.effective_date) %><br />
20 <p><%= format_date(version.effective_date) %><br />
19 <%=h version.description %></p>
21 <%=h version.description %></p>
20 <ul>
22 <ul>
21 <% version.fixed_issues.find(:all, :conditions => ["issues.tracker_id in (#{@selected_tracker_ids.join(',')})"]).each do |issue| %>
23 <% version.fixed_issues.find(:all, :conditions => ["issues.tracker_id in (#{@selected_tracker_ids.join(',')})"]).each do |issue| %>
22 <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %></li>
24 <li><%= link_to "#{issue.tracker.name} #{issue.id}", :controller => 'issues', :action => 'show', :id => issue %>: <%=h issue.subject %></li>
23 <% end %>
25 <% end %>
24 </ul>
26 </ul>
25 <% end %>
27 <% end %>
26 </div> No newline at end of file
28 </div>
General Comments 0
You need to be logged in to leave comments. Login now