Skip to content

Commit

Permalink
Merge pull request #50 from f3l/036-handle_newline
Browse files Browse the repository at this point in the history
Handle newline in views
Closes #36 
Closes #37
  • Loading branch information
pheerai authored Jan 5, 2019
2 parents 9f99e47 + 916d35f commit 2316640
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/basemenu.dt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
div(class="menu", id="menu")
a(class="menuitem", href="index") Startseite
a(class="menuitem", href="add") Hinzufügen
a(class="menuitem", href="all") Alle
a(class="menuitem", href="all_paginated?pagesize=10&page=1") Alle
a(class="menuitem", href="random") Zufällig
1 change: 0 additions & 1 deletion resources/views/modify.dt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ extends ./layout

block content
p#desc Zitat bearbeiten.
p Zeilenumbrüche werden ersetzt durch „ – “.
form(action="do_modify", method="POST")
div Zitat:
textarea#inputField(type="text", name="cite", autofocus=true) #{citetext}
Expand Down
3 changes: 2 additions & 1 deletion resources/views/rendercite.dt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
div.citecontainer
a.citeid(href="cite?id=#{cite.id}") #{cite.id}
div.cite
div.citetext #{cite.cite}
- import std.string :replace;
div.citetext #{cite.cite.replace("\r\n", " – ")}
a.edit(href="modify?id=#{cite.id}") (Edit)
div.added Added by #{cite.addedby} (#{cite.added})
div.changed Last changed by #{cite.changedby} (#{cite.changed})
Expand Down

0 comments on commit 2316640

Please sign in to comment.