Project

General

Profile

Patch #21434 » 002_add-version-status-css-class-to-version-details.diff

Tobias Fischer, 2015-12-06 13:49

View differences:

app/views/versions/show.html.erb
7 7

  
8 8
<h2><%= @version.name %></h2>
9 9

  
10
<div id="roadmap">
10
<div id="roadmap" class="<%= @version.completed? ? 'version-completed' : 'version-incompleted' %> <%= @version.open? ? 'version-status-open' : (@version.closed? ? 'version-status-closed' : 'version-status-locked') %>">
11 11
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
12 12
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
(2-2/4)