mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Start with a Rails app with authentication via Persona, Foundation CSS
This commit is contained in:
parent
9ac52066b4
commit
7cd9f207f5
72 changed files with 2586 additions and 0 deletions
9
app/views/application/_login_button.html.slim
Normal file
9
app/views/application/_login_button.html.slim
Normal file
|
@ -0,0 +1,9 @@
|
|||
= form_tag '/auth/browser_id/callback', id: 'browser-id-form'
|
||||
= hidden_field_tag(:assertion)
|
||||
|
||||
- if signed_in?
|
||||
= link_to session_path, data: { method: :delete, logout: true }
|
||||
| Abmelden
|
||||
- else
|
||||
= link_to session_path, data: { 'persona-login' => true }
|
||||
| Anmelden
|
24
app/views/layouts/application.html.slim
Normal file
24
app/views/layouts/application.html.slim
Normal file
|
@ -0,0 +1,24 @@
|
|||
doctype html
|
||||
html
|
||||
head
|
||||
title Stadtratmonitor Leipzig
|
||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||
= javascript_include_tag 'vendor/modernizr'
|
||||
= csrf_meta_tags
|
||||
|
||||
body
|
||||
.row
|
||||
- flash.each do |name, msg|
|
||||
= content_tag :div, msg, class: name
|
||||
.row
|
||||
.large-8.columns
|
||||
h2#title
|
||||
= link_to 'Willkommen in Leipzig', root_path
|
||||
.large-4.columns
|
||||
ul.inline-list.right
|
||||
li = render 'login_button'
|
||||
.row
|
||||
= yield
|
||||
|
||||
script src="https://login.persona.org/include.js"
|
||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
4
app/views/search/index.html.slim
Normal file
4
app/views/search/index.html.slim
Normal file
|
@ -0,0 +1,4 @@
|
|||
= form_tag(search_path, method: :get)
|
||||
= label_tag(:q, 'Suche:')
|
||||
= text_field_tag(:q)
|
||||
= submit_tag 'Suchen', class: 'button'
|
Loading…
Add table
Add a link
Reference in a new issue