Servlet-context fixes
This commit is contained in:
parent
3463292e3c
commit
b7ddc0a443
|
@ -63,9 +63,6 @@
|
|||
<!-- content: put your main page content into this block -->
|
||||
{% endblock %}
|
||||
</div>
|
||||
<p>
|
||||
User: {{user}}
|
||||
</p>
|
||||
<br clear="both"/>
|
||||
</div>
|
||||
{% block foot %}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<p>
|
||||
Use this form to request someone to phone you to discuss your concerns about independence.
|
||||
</p>
|
||||
<form action="call-me" method="post">
|
||||
<form action="{{servlet-context}}/call-me" method="post">
|
||||
{% csrf-field %}
|
||||
<p class="widget">
|
||||
<label for="name">Your name</label>
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
<!-- File list-followuprequests-Followuprequests.html generated 2018-07-17T07:58:11.329Z by adl.to-selmer-templates.
|
||||
See [Application Description Language](https://github.com/simon-brooke/adl).-->
|
||||
|
||||
|
||||
{% block back-links %}
|
||||
<div>
|
||||
|
@ -31,7 +28,7 @@ Add a new Followuprequest
|
|||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<form id='list-followuprequests-Followuprequests' class='list' action='{{servlet-context}}/list-followuprequests-Followuprequests' method='POST'>
|
||||
<form id='issue-expert-list' class='list' action='{{servlet-context}}/issue-expert/list' method='POST'>
|
||||
{% csrf-field %}
|
||||
<input id='offset' name='offset' type='hidden' value='{{params.offset|default:0}}'/>
|
||||
<input id='limit' name='limit' type='hidden' value='{{params.limit|default:50}}'/>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="login" method="post">
|
||||
<form action="{{servlet-context}}/login" method="post">
|
||||
{% csrf-field %}
|
||||
<h2>
|
||||
Or use a test username and password
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
{% block big-links %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{{motd|safe}}
|
||||
{{content|safe}}
|
||||
{% endblock %}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
{% block big-links %}
|
||||
{% for role in roles %}
|
||||
<div class="big-link-container">
|
||||
<a href="roles/{{role.link|lower}}" class="big-link" id="big-link">{{role.name}}</a>
|
||||
<a href="{{servlet-context}}/roles/{{role.link|lower}}" class="big-link" id="big-link">{{role.name}}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -49,9 +49,9 @@
|
|||
|
||||
|
||||
(defn about-page []
|
||||
(layout/render "about.html" {:title
|
||||
(layout/render "md.html" {:title
|
||||
(str "About " (:site-title env))
|
||||
:motd (md-to-html-string (slurp (io/resource "about.md")))}))
|
||||
:content (md-to-html-string (slurp (io/resource "about.md")))}))
|
||||
|
||||
|
||||
(defn call-me-page [request]
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
(defn handle-logout
|
||||
[request]
|
||||
(let [r (response/found "home")]
|
||||
(let [r (response/found (str (:servlet-context request) "/home"))]
|
||||
(assoc r :session (dissoc (:session r) :user))))
|
||||
|
||||
|
||||
|
@ -123,5 +123,4 @@
|
|||
(defroutes logged-in-routes
|
||||
(GET "/logout" request (handle-logout request))
|
||||
(GET "/profile" request (route/restricted (profile-page request)))
|
||||
(GET "/app" [request] (route/restricted (app-page request)))
|
||||
)
|
||||
(GET "/app" [request] (route/restricted (app-page request))))
|
||||
|
|
Loading…
Reference in a new issue