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
ae132572
Commit
ae132572
authored
Jan 12, 2016
by
David Haynes
🙆
Browse files
Prettier link box via more css
- spacing, header(ing), renaming - added edit link to be completed in issue 25
parent
94b06409
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/templates/link_box.html
View file @
ae132572
...
...
@@ -16,32 +16,43 @@
<div
class=
"container"
>
<div
class=
"col-md-8"
>
<strong>
Long:
</strong>
<a
href=
"{{url.target}}"
>
{{url.target}}
</a>
<br
/>
<h3>
Go Address:
</h3>
<a
href=
"{{url.short}}"
>
go.gmu.edu/{{url.short}}
</a>
<br></br>
<strong>
Short:
</strong>
<a
href=
"/{{url.short}}"
>
{{url.short}}
</a>
<br
/>
<h3>
Address Details:
</h3>
<strong>
Target URL:
</strong>
<br
/>
<a
href=
"{{url.target}}"
>
{{url.target}}
</a>
<br></br>
{% if url.owner = request.user and request.user|is_registered %}
<strong>
Clicks:
</strong>
{{url.clicks}}
<br
/>
{% if url.owner = request.user and request.user|is_registered %}
<strong>
Clicks:
</strong>
{{url.clicks}}
<br
/>
<strong>
QR Code Uses:
</strong>
{{url.qrclicks}}
<br
/>
<strong>
Social Clicks:
</strong>
{{url.socialclicks}}
<br
/>
<strong>
QR Code Uses:
</strong>
{{url.qrclicks}}
<br
/>
<strong>
Social Clicks:
</strong>
{{url.socialclicks}}
<br
/>
<strong>
Expires:
</strong>
{{url.expires|default_if_none:"Never"}}
<br
/
>
<strong>
Expires:
</strong>
{{url.expires|default_if_none:"Never"}}
<br
></br
>
<strong>
<a
href=
"{%url 'delete' url.short%}"
onclick=
"return confirm('Are you sure you want to delete this link?');"
>
Delete
</a>
</strong>
{% endif %}
<br></br>
<strong>
<a
href=
"https://www.google.com"
>
Edit
</a>
</strong>
<br
/>
<strong>
<a
href=
"{%url 'delete' url.short%}"
onclick=
"return confirm('Are you sure you want to delete this link?');"
>
Delete
</a>
</strong>
{% endif %}
<br></br>
</div>
<div
class=
"col-md-4"
>
...
...
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