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
4d4feb74
Commit
4d4feb74
authored
Mar 31, 2014
by
Jean Michel Rouly
Browse files
Added qrcode -- needs bootstrapping or styling
parent
099c42aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/templates/link_box.html
View file @
4d4feb74
...
...
@@ -2,7 +2,8 @@
{% load qr_tags %}
<div
class=
"link-box"
>
<p>
<p
class=
"link"
>
<strong>
Long:
</strong>
<a
href=
"{{url.target}}"
>
{{url.target}}
</a>
<br
/>
...
...
@@ -16,9 +17,6 @@
<strong>
Expires:
</strong>
{{url.expires|default_if_none:"Never"}}
<br
/>
<strong>
QR Code:
</strong>
<br/>
{%qr_from_text url.get_absolute_url 90%}
<br
/>
<strong>
<a
href=
"{%url 'delete' url.short%}"
onclick=
"return confirm('Are you sure you want to delete this link?');"
>
...
...
@@ -27,4 +25,9 @@
</strong>
{% endif %}
</p>
<p
class=
"qr"
>
{% qr_from_text url.get_absolute_url 100 %}
</p>
</div>
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