Bump versions and fix the issues

This commit is contained in:
Aaron Fischer 2018-03-22 00:33:26 +01:00 committed by Aaron Fischer
parent ae573ccfb1
commit 9a6d6ad5b2
No known key found for this signature in database
GPG key ID: A62EFAEA293B99D7
6 changed files with 16 additions and 17 deletions

View file

@ -2,7 +2,7 @@
{% block content %} {% block content %}
<div class="btn-group pull-right clearfix" role="group"> <div class="btn-group float-right clearfix" role="group">
{% if next-image %} {% if next-image %}
<a class="btn btn-secondary" href="/show/{{ next-image.id }}" id="next-image"> <a class="btn btn-secondary" href="/show/{{ next-image.id }}" id="next-image">
{% else %} {% else %}
@ -28,7 +28,7 @@
</a> </a>
</div> </div>
<div class="pull-left clearfix"> <div class="float-left clearfix">
<h1>{{ image.title }}</h1> <h1>{{ image.title }}</h1>
<div id="image-tags"> <div id="image-tags">
{% for tag in tags %} {% for tag in tags %}
@ -47,7 +47,7 @@
<div id="detail-attributes"> <div id="detail-attributes">
{% ifequal identity ":creator" %} {% ifequal identity ":creator" %}
<div class="btn-group pull-right clearfix" role="group"> <div class="btn-group float-right clearfix" role="group">
<a class="btn btn-primary btn-sm" href="/edit/{{ image.id }}"> <a class="btn btn-primary btn-sm" href="/edit/{{ image.id }}">
<span class="fa fa-pencil"></span> <span class="fa fa-pencil"></span>
Bearbeiten Bearbeiten

View file

@ -9,9 +9,9 @@
{% endif %} {% endif %}
</head> </head>
<body> <body>
<nav class="navbar navbar-toggleable-md bg-inverse navbar-inverse"> <nav class="navbar navbar-expand-lg navbar-toggleable-md bg-dark navbar-dark">
{% if identity %} {% if identity %}
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
{% endif %} {% endif %}

View file

@ -47,14 +47,12 @@
(log/info component "started")) (log/info component "started"))
(.addShutdownHook (Runtime/getRuntime) (Thread. stop-app))) (.addShutdownHook (Runtime/getRuntime) (Thread. stop-app)))
(defn -main [& args] (defn setup-prerequisites []
(cond (image/create-needed-folders)
(some #{"migrate" "rollback"} args) (migrations/migrate ["migrate"] (select-keys env [:database-url])))
(do
(mount/start #'yenu.config/env) (defn -main [& args]
(image/create-needed-folders) (mount/start #'yenu.config/env)
(migrations/migrate args (select-keys env [:database-url])) (setup-prerequisites)
(System/exit 0)) (start-app args))
:else
(start-app args)))

View file

@ -10,3 +10,4 @@
(conman/bind-connection *db* "sql/queries.sql") (conman/bind-connection *db* "sql/queries.sql")

View file

@ -22,7 +22,7 @@
(filter/add-filter! :parse-date #(time/to-time-zone (time-format/parse %) (time/default-time-zone))) (filter/add-filter! :parse-date #(time/to-time-zone (time-format/parse %) (time/default-time-zone)))
(defn footer [] (defn footer []
(if (= (:count (db/get-image-count) 0)) (if (= (:count (db/get-image-count)) 0)
(clojure.string/join ", " (:authors env)) (clojure.string/join ", " (:authors env))
(let [first-year (subs (:created_at (db/get-first-year)) 0 4) (let [first-year (subs (:created_at (db/get-first-year)) 0 4)
recent-year (subs (:created_at (db/get-recent-year)) 0 4) recent-year (subs (:created_at (db/get-recent-year)) 0 4)

View file

@ -30,7 +30,7 @@
(if (< num 2) (if (< num 2)
"" ""
(h/html (h/html
[:nav.pull-right.clearfix {:aria-label "Page navigation"} [:nav.float-right.clearfix {:aria-label "Page navigation"}
[:ul.pagination.hidden-sm-down [:ul.pagination.hidden-sm-down
(page (dec current) (= current 1) "disabled" (h/html [:span.fa.fa-arrow-left] " Zurück")) (page (dec current) (= current 1) "disabled" (h/html [:span.fa.fa-arrow-left] " Zurück"))
(cond (cond