Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add option to change title of archives sidebar [merge from 'chrisboyl…

…e/master']

Merges an old pull request by @chrisboyle (#54).
  • Loading branch information...
commit 63a39f571ecf2e1d4d182b4c81a69d02ce0480f2 2 parents b46041e + 1ca0d7d
@mvz mvz authored
View
2  vendor/plugins/archives_sidebar/app/views/archives_sidebar/_content.html.erb
@@ -1,5 +1,5 @@
<% unless sidebar.archives.blank? %>
-<h3><%= _("Archives")%></h3>
+<h3 class="sidebar-title"><%= sidebar.title %></h3>
<ul id="archives">
<% sidebar.archives.each do |month| %>
<% counter = sidebar.show_count ? "<em>(#{month[:article_count]})</em>" : "" %>
View
1  vendor/plugins/archives_sidebar/lib/archives_sidebar.rb
@@ -1,5 +1,6 @@
class ArchivesSidebar < Sidebar
description 'Displays links to monthly archives'
+ setting :title, 'Archives'
setting :show_count, true, :label => 'Show article counts', :input_type => :checkbox
setting :count, 10, :label => 'Number of Months'
Please sign in to comment.
Something went wrong with that request. Please try again.