From c8c2f4a5091753e9a94c659b03d3534145e8698a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Sat, 5 Jan 2019 18:14:35 +0100 Subject: [PATCH 1/2] Change all cites link --- resources/views/basemenu.dt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/basemenu.dt b/resources/views/basemenu.dt index 3fa8382..6c4fd81 100644 --- a/resources/views/basemenu.dt +++ b/resources/views/basemenu.dt @@ -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 From 916d35fcf62af005409c7f15e8ac7a04dec8a911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Sat, 5 Jan 2019 18:16:23 +0100 Subject: [PATCH 2/2] Handle newlines in cites view --- resources/views/modify.dt | 1 - resources/views/rendercite.dt | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/modify.dt b/resources/views/modify.dt index 6244ef7..76858f0 100644 --- a/resources/views/modify.dt +++ b/resources/views/modify.dt @@ -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} diff --git a/resources/views/rendercite.dt b/resources/views/rendercite.dt index 5d580d2..7eb785d 100644 --- a/resources/views/rendercite.dt +++ b/resources/views/rendercite.dt @@ -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})