diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 6a81078..376e3f9 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -6,6 +6,7 @@ class GalleriesController < ApplicationController # GET /galleries.json def index @galleries = Gallery.all + @toolbar_elements << {:hicon => 'icon-plus', :text => I18n.t('fotos.new-gallery'), :path => new_gallery_path } respond_to do |format| format.html # index.html.erb diff --git a/app/views/galleries/index.html.erb b/app/views/galleries/index.html.erb index fe5a107..e70cb05 100644 --- a/app/views/galleries/index.html.erb +++ b/app/views/galleries/index.html.erb @@ -32,4 +32,4 @@ <% end %>
-<%= link_to I18n.t('fotos.new-gallery'), new_gallery_path %> +<%= render :partial => 'layouts/pretty_toolbar' %>