From c837896abe2f9ebf425259f2551f9ffd42c65bc8 Mon Sep 17 00:00:00 2001 From: HausdorffHimself Date: Tue, 10 Sep 2013 02:17:37 +0200 Subject: [PATCH] =?UTF-8?q?ADD:=20pretty-toolbar=20f=C3=BCr=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/galleries_controller.rb | 1 + app/views/galleries/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' %>