Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
57ff4a70
Commit
57ff4a70
authored
Nov 11, 2011
by
Cynddl
Browse files
[mod] "Attachments" section on the right
parent
7f0eb969
Changes
2
Hide whitespace changes
Inline
Side-by-side
media/css/style.css
View file @
57ff4a70
...
...
@@ -413,6 +413,12 @@ div.comment {
font-weight
:
normal
;
}
#description
.description-node
.attachs
{
float
:
right
;
padding
:
0.5em
;
text-align
:
right
;
}
/* General inputs */
...
...
templates/view.html
View file @
57ff4a70
...
...
@@ -103,11 +103,9 @@ $(document).ready(function() {
<h3>
{%trans "Description" %}
</h3>
{%for c in v.comment_set.all%}
<div
class=
"description-node"
>
<div
class=
"description"
>
{{c.comment|safe}}
</div>
<span
class=
"submitter"
>
{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}
</span>
-
<span
class=
"comment_date"
>
{{c.timestamp|date:"SHORT_DATE_FORMAT" }}
</span>
{%if c.attachment_set.all%}
<div
class=
"attachs"
>
{% trans "Attachments" %}
{%if c.attachment_set.all%}
<div
class=
"attachs"
>
<h4>
{% trans "Attachments" %}
</h4>
<ul>
{%for a in c.attachment_set.all%}
<li><a
href=
"{%media_url%}/{{a.storage.url}}"
>
{{a.name}}
</a></li>
...
...
@@ -115,6 +113,8 @@ $(document).ready(function() {
</ul>
</div>
{%endif%}
<div
class=
"description"
>
{{c.comment|safe}}
</div>
<span
class=
"submitter"
>
{%if c.submitter_name%}{{c.submitter_name}}{%else%}{{c.submitter_email}}{%endif%}
</span>
-
<span
class=
"comment_date"
>
{{c.timestamp|date:"SHORT_DATE_FORMAT" }}
</span>
</div>
{%endfor%}
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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