Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Single quotes #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Single quotes #46

wants to merge 4 commits into from

Conversation

Alge
Copy link
Collaborator

@Alge Alge commented May 6, 2018

No description provided.

@@ -0,0 +1,39 @@
<style>
Copy link
Member

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' %}
Copy link
Member

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>
Copy link
Member

@reinefjord reinefjord May 6, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants