12345678910111213141516171819202122232425 |
- h2 Information eingeben
- |Jede eingegebene Information erscheint mit einem Datum versehen auf der
- a<> href=url("/") Startseite
- p
- form.form-horizontal method="post" action=url("/info")
- .form-group
- label.col-sm-1 for="text" Text
- .col-sm-11
- textarea class="form-control" rows="3" name="text"
- .form-group
- .col-sm-offset-1.col-sm-11
- input.form-control type="hidden" name="timestamp" value=Time.now.to_i
- button type="submit" class="btn btn-primary" Info speichern
- -unless infos.empty?
- h2 Einträge bearbeiten
- table.table.table-condensed
- -infos.each do |i|
- tr
- td =(Time.at(i.timestamp)).strftime("%d.%m.%Y – %k:%M Uhr")
- td =i.text
- td
- a.btn.btn-danger href="/info_loeschen/#{i.id}" Löschen
|