diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-03 09:52:58 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-03 09:52:58 +0000 |
commit | 22a78856051fa3759c581efa9a0c21050906f070 (patch) | |
tree | ecdc0e46139ed5f886d55fca48785d58e5dbdd90 /app/views/versions | |
parent | 7bd4ea835ea68ec96f437f702289e0204141b6cd (diff) | |
download | redmine-22a78856051fa3759c581efa9a0c21050906f070.tar.gz redmine-22a78856051fa3759c581efa9a0c21050906f070.zip |
code layout clean up app/views/versions/index.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11778 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r-- | app/views/versions/index.html.erb | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb index d28963ae3..3fc8fe697 100644 --- a/app/views/versions/index.html.erb +++ b/app/views/versions/index.html.erb @@ -1,34 +1,35 @@ <div class="contextual"> - <%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %> + <%= link_to(l(:label_version_new), new_project_version_path(@project), + :class => 'icon icon-add') if User.current.allowed_to?(:manage_versions, @project) %> </div> <h2><%=l(:label_roadmap)%></h2> <% if @versions.empty? %> -<p class="nodata"><%= l(:label_no_data) %></p> + <p class="nodata"><%= l(:label_no_data) %></p> <% else %> -<div id="roadmap"> -<% @versions.each do |version| %> + <div id="roadmap"> + <% @versions.each do |version| %> <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> <%= render :partial => 'versions/overview', :locals => {:version => version} %> - <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %> - + <%= render(:partial => "wiki/content", + :locals => {:content => version.wiki_page.content}) if version.wiki_page %> <% if (issues = @issues_by_version[version]) && issues.size > 0 %> - <%= form_tag({}) do -%> - <table class="list related-issues"> - <caption><%= l(:label_related_issues) %></caption> - <% issues.each do |issue| -%> - <tr class="hascontextmenu"> - <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> - <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> - </tr> - <% end -%> - </table> - <% end %> + <%= form_tag({}) do -%> + <table class="list related-issues"> + <caption><%= l(:label_related_issues) %></caption> + <% issues.each do |issue| -%> + <tr class="hascontextmenu"> + <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> + <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> + </tr> + <% end -%> + </table> + <% end %> <% end %> <%= call_hook :view_projects_roadmap_version_bottom, :version => version %> -<% end %> -</div> + <% end %> + </div> <% end %> <% content_for :sidebar do %> |