ADD: pretty-toolbar für index
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -32,4 +32,4 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<%= link_to I18n.t('fotos.new-gallery'), new_gallery_path %>
|
<%= render :partial => 'layouts/pretty_toolbar' %>
|
||||||
|
|||||||
Reference in New Issue
Block a user