Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
7c132143
Commit
7c132143
authored
Dec 24, 2013
by
Jean Michel Rouly
Browse files
Only show a URL's sensitive data if a user is logged in AND registered.
parent
60f806c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/templates/link_box.html
View file @
7c132143
{% load go_extras %}
<div
class=
"link-box"
>
<p>
<strong>
Long:
</strong>
<a
href=
"{{url.target}}"
>
{{url.target}}
</a>
...
...
@@ -6,7 +8,7 @@
<strong>
Short:
</strong>
<a
href=
"/{{url.short}}"
>
{{url.short}}
</a>
<br
/>
{% if url.owner = request.user %}
{% if url.owner = request.user
and request.user|is_registered
%}
<strong>
Clicks:
</strong>
{{url.clicks}}
<br
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment