better-roadmap-structure.diff

An Phan, 2015-03-11 09:44

Download (2.32 KB)

View differences:

app/views/versions/index.html.erb (working copy)
10 10
<% else %>
11 11
  <div id="roadmap">
12 12
  <% @versions.each do |version| %>
13
    <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
14
    <%= render :partial => 'versions/overview', :locals => {:version => version} %>
15
    <%= render(:partial => "wiki/content",
16
               :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
17
    <% if (issues = @issues_by_version[version]) && issues.size > 0 %>
18
      <%= form_tag({}) do -%>
19
        <table class="list related-issues">
20
        <caption><%= l(:label_related_issues) %></caption>
21
        <% issues.each do |issue| -%>
22
          <tr class="hascontextmenu">
23
            <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
24
            <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
25
          </tr>
26
        <% end -%>
27
        </table>
13
    <article class="version-article <%= version.completed?? 'version-completed' : 'version-incompleted' %>">
14
      <header>
15
        <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
16
      </header>
17
      <%= render :partial => 'versions/overview', :locals => {:version => version} %>
18
      <%= render(:partial => "wiki/content",
19
                 :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
20
      <% if (issues = @issues_by_version[version]) && issues.size > 0 %>
21
        <%= form_tag({}) do -%>
22
          <table class="list related-issues">
23
          <caption><%= l(:label_related_issues) %></caption>
24
          <% issues.each do |issue| -%>
25
            <tr class="hascontextmenu">
26
              <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
27
              <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
28
            </tr>
29
          <% end -%>
30
          </table>
31
        <% end %>
28 32
      <% end %>
29
    <% end %>
33
    </article>
30 34
    <%= call_hook :view_projects_roadmap_version_bottom, :version => version %>
31 35
  <% end %>
32 36
  </div>