Permalink
Browse files

Option to change title of Archives sidebar.

  • Loading branch information...
1 parent db9416a commit 1ca0d7d8c34c285427e7078e9fbdf44c80825d2b @chrisboyle chrisboyle committed Apr 2, 2011
@@ -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>" : "" %>
@@ -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'

0 comments on commit 1ca0d7d

Please sign in to comment.