Add admin interface for the links

This commit is contained in:
Patrick Gansterer 2019-11-04 03:52:07 +01:00
parent 7657b05787
commit 1053b3883d
11 changed files with 142 additions and 0 deletions

View file

@ -1,6 +1,25 @@
de:
activerecord:
attributes:
link:
name: Name
url: URL
workgroup: Arbeitsgruppe
indirect: Indirekt
authorization: Authorization-Header
admin:
links:
index:
title: Links
new_link: Neuen Link hinzufügen
form:
title_new: Link hinzufügen
title_edit: Link bearbeiten
description: Wenn eine Arbeitsgruppe ausgewählt ist, dann ist der Link nur für deren Mitglieder sichtbar. Die Option Indirekt ermöglicht es, dass die Foodsoft Nutzer_innen an die bei von der URL zurück gegebene Adresse weiterleitet. Diese Option sollte nur bei genauem Verständnis der Funktion aktiviert werden.
links:
show:
indirect_no_location: Die konfigurierte URL hat keinen Location Header für die Weiterleitung zurück gegeben.
navigation:
admin:
links: Links
links: Links

View file

@ -1,6 +1,23 @@
en:
activerecord:
attributes:
link:
name: Name
url: URL
workgroup: Workgroup
indirect: Indirect
authorization: Authorization-Header
admin:
links:
index:
title: Links
new_link: Add new link
form:
description: If a workgroup is selected, the link is only visible to its members. The option Indirect allows it, that the Foodsoft will redirect users to the address returned by the URL. This option should only be activated if the exact functionality is understood correctly.
links:
show:
indirect_no_location: The configured URL did not return a Location header for redirection.
navigation:
admin:
links: Links
links: Links

View file

@ -4,6 +4,10 @@ Rails.application.routes.draw do
resources :links, only: [:show]
namespace :admin do
resources :links
end
end
end