04_use_regular_icons_in_version_tab.patch

Marius BALTEANU, 2016-11-10 01:09

Download (1.75 KB)

View differences:

app/views/versions/index.html.erb
17 17
      </div>
18 18
    <% end %>
19 19
    <header>
20
      <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
20
      <h3 class="icon icon-package version"><%= link_to_version version, :name => version_anchor(version) %></h3>
21 21
    </header>
22 22
    <%= render :partial => 'versions/overview', :locals => {:version => version} %>
23 23
    <%= render(:partial => "wiki/content",
......
85 85
</ul>
86 86
<% if @completed_versions.present? %>
87 87
<p>
88
  <%= link_to_function l(:label_completed_versions), 
88
  <%= link_to_function l(:label_completed_versions),
89 89
                       '$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
90 90
                       :id => 'toggle-completed-versions', :class => 'collapsible collapsed' %>
91 91
  <ul id = "completed-versions" style = "display:none;">
92 92
    <% @completed_versions.each do |version| %>
93 93
      <li><%= link_to_version version %></li>
94
    <% end %>  
94
    <% end %>
95 95
  </ul>
96 96
</p>
97 97
<% end %>
public/stylesheets/application.css
311 311

  
312 312
td.center {text-align:center;}
313 313

  
314
h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; }
315

  
316 314
#watchers select {width: 95%; display: block;}
317 315
#watchers a.delete {opacity: 0.4; margin-left: 5px;}
318 316
#watchers a.delete:hover {opacity: 1;}