forked from bofh/fetsite
CHANGE: pretty_toolbar für Foto
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class FotosController < ApplicationController
|
||||
before_filter {@toolbar_elements=[]}
|
||||
# GET /fotos
|
||||
# GET /fotos.json
|
||||
def index
|
||||
@@ -27,6 +28,8 @@ class FotosController < ApplicationController
|
||||
@foto = Foto.new
|
||||
@gallery = Gallery.find_by_id(params[:gallery_id])
|
||||
@foto.gallery_id = @gallery.id
|
||||
@toolbar_elements << {:hicon => 'icon-arrow-left', :text => I18n.t('common.back'), :path => gallery_path(params[:gallery_id]) }
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @foto }
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
<%= render 'form_bulk' %>
|
||||
|
||||
<%= link_to 'Back', gallery_path(params[:gallery_id]) %>
|
||||
<%= render :partial => 'layouts/pretty_toolbar' %>
|
||||
|
||||
@@ -8,6 +8,7 @@ de:
|
||||
actions: "Aktionen"
|
||||
delete: "Löschen"
|
||||
verwalten: "Verwalten"
|
||||
back: "Zurück"
|
||||
home:
|
||||
mtitle: "Menu"
|
||||
willkommen: "Willkommen bei der Fachschaft Elektrotechnik"
|
||||
|
||||
Reference in New Issue
Block a user