Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

History panel can be toggled up or down.

  • Loading branch information...
commit 8cd509574476dab1fef3c382656e0e4b5e2ef9b6 1 parent 5b625f9
@steveyken steveyken authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 app/views/versions/_versions.html.haml
View
16 app/views/versions/_versions.html.haml
@@ -1,11 +1,11 @@
- if Setting.paper_trail_ui_enabled
+ - collapsed = session[:version_history].nil?
%br
+ = subtitle(:version_history, collapsed, t(:versions))
+ %div
+ %div{ hidden_if(collapsed) }
+ .list#versions
+ - versions = Version.history(object).paginate(:page => 1, :per_page => 10)
+ = render :partial => "versions/version", :collection => versions
- .subtitle
- = t(:versions)
-
- .list#versions
- - versions = Version.history(object).paginate(:page => 1, :per_page => 10)
- = render :partial => "versions/version", :collection => versions
-
- = will_paginate versions, :id => 'versions_pagination', :params => {:action => :versions}
+ = will_paginate versions, :id => 'versions_pagination', :params => {:action => :versions}
Please sign in to comment.
Something went wrong with that request. Please try again.