ADD: pretty-toolbar für index

This commit is contained in:
HausdorffHimself
2013-09-10 02:17:37 +02:00
parent e1d730fd04
commit c837896abe
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ class GalleriesController < ApplicationController
# GET /galleries.json # GET /galleries.json
def index def index
@galleries = Gallery.all @galleries = Gallery.all
@toolbar_elements << {:hicon => 'icon-plus', :text => I18n.t('fotos.new-gallery'), :path => new_gallery_path }
respond_to do |format| respond_to do |format|
format.html # index.html.erb format.html # index.html.erb

View File

@@ -32,4 +32,4 @@
<% end %> <% end %>
<br /> <br />
<%= link_to I18n.t('fotos.new-gallery'), new_gallery_path %> <%= render :partial => 'layouts/pretty_toolbar' %>