Skip to content

Commit

Permalink
Merge pull request #55 from f3l/052-hideNonEdits
Browse files Browse the repository at this point in the history
Hide edit information on unchanged cites
  • Loading branch information
pheerai authored Jan 8, 2019
2 parents 4fa6af0 + 3ceb227 commit 111d6bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/views/rendercite.dt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
div.citecontainer
a.citeid(href="cite?id=#{cite.id}") #{cite.id}
div.cite
- import std.string :replace;
- 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})
- if (cite.changedby != null)
div.changed Last changed by #{cite.changedby} (#{cite.changed})
div.clear
div.clear
4 changes: 2 additions & 2 deletions source/citesystem/server/sqlite.d
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public:
modCite2.bind(":cite", cite);
modCite2.bind(":id", id);
modCite1.execute();
scope(exit) modCite1.reset();
modCite2.execute();
modCite1.reset();
modCite2.reset();
scope(exit) modCite2.reset();
return id;
}

Expand Down

0 comments on commit 111d6bb

Please sign in to comment.