Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
ac3ed384
Commit
ac3ed384
authored
Mar 01, 2016
by
Okhin
Browse files
Using the bootstrap alerts for messages
parent
9332b9e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
nnmon/templates/base.html
View file @
ac3ed384
...
...
@@ -70,6 +70,14 @@
</div>
</div>
{% if messages %}
{% for message in messages %}
<div
class=
"alert alert-{{ message.tags }} alert-dismissible"
role=
"alert"
>
<button
tye=
"button"
class=
"close"
data-dismiss=
"alert"
aria-lable=
{%
trans
"
Close
"
%}
><span
aria-hidden=
"true"
>
×
</span></button>
{{message|safe}}
</div>
{% endfor %}
{% endif %}
<div
id=
"wrapper"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
...
...
nnmon/templates/index.html
View file @
ac3ed384
...
...
@@ -72,13 +72,6 @@
{% endblock %}
{%block content%}
{% if messages %}
<ul
class=
"messages"
>
{% for message in messages %}
<li
{%
if
message.tags
%}
class=
"{{ message.tags }}"
{%
endif
%}
>
{{ message|safe }}
</li>
{% endfor %}
</ul>
{% endif %}
<div
class=
"row"
>
<div
class=
"col-xs-12 col-md-8"
id=
"content"
>
<h2>
{% trans "On the Internet,
<strong>
you
</strong>
decide what you do, right?
<i>
Maybe not!
</i>
" %}
</h2>
...
...
Write
Preview
Supports
Markdown
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