-
Notifications
You must be signed in to change notification settings - Fork 2
Single quotes #46
base: master
Are you sure you want to change the base?
Single quotes #46
Conversation
@@ -0,0 +1,39 @@ | |||
<style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like <style></style>
should be in the template, the .css file should only contain CSS.
display: none; | ||
} | ||
</style> | ||
{% include 'strecklista/components/quote.css' %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<style>
{% include 'strecklista/components/quote.css' %}
</style>
@@ -4,4 +4,7 @@ | |||
<div class="quotee">{{ quote.who }}</div> | |||
<div class="detail">{{ quote.timestamp }}</div> | |||
</div> | |||
<div class="quote-link"> | |||
Permanent länk: <a href="{{ request.get_host }}/quote/{{ quote.id }}">{{ request.get_host }}/quote/{{ quote.id }}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anchor must have the protocol in href
, otherwise request.get_host
is interpreted as the protocol. Should be href="//{{ request.get_host C}}[...]"
, note the //
. Isn't {% url 'view.name' quote=quote.id %} the correct way to do this though?
Also, <a href="...">Permanent länk</a>
is IMHO better UX. It's how hyperlinks are intended to be used.
No description provided.