001_add-version-status-css-class-to-roadmap.diff

Tobias Fischer, 2015-12-06 13:49

Download (743 Bytes)

View differences:

app/views/versions/index.html.erb
10 10
<% else %>
11 11
  <div id="roadmap">
12 12
  <% @versions.each do |version| %>
13
  <article class="version-article <%= version.completed? ? 'version-completed' : 'version-incompleted' %>">
13
  <article class="version-article <%= version.completed? ? 'version-completed' : 'version-incompleted' %> <%= version.open? ? 'version-status-open' : (version.closed? ? 'version-status-closed' : 'version-status-locked') %>">
14 14
    <header>
15 15
      <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
16 16
    </header>