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
itminedu
synnefo
Commits
e5726427
Commit
e5726427
authored
Feb 03, 2012
by
Kostas Papadimitriou
Browse files
Display page global messages
parent
59cd6bd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
astakos/im/static/im/grnetstyles/css/styles.css
View file @
e5726427
...
...
@@ -722,6 +722,29 @@ div.form-stacked {
.section
p
{
line-height
:
1.7em
;
}
.messages
{
display
:
inline
;
float
:
left
;
margin-left
:
22px
;
width
:
798px
;
margin-bottom
:
2em
;
background-color
:
#ddd
;
}
.messages
li
{
padding
:
1em
;
}
.messages
li
.success
{
background-color
:
#46a546
;
color
:
#ffffff
;
}
.messages
li
.error
{
background-color
:
#9d261d
;
color
:
#ffffff
;
}
.messages
li
.warning
{
background-color
:
#ffc40d
;
color
:
#000000
;
}
.service-desc
{
margin-top
:
4em
;
}
astakos/im/static/im/grnetstyles/css/styles.less
View file @
e5726427
...
...
@@ -310,6 +310,23 @@ div.form-stacked {
}
// page messages
.messages {
.makeColumn(10);
margin-bottom: 2em;
background-color: #ddd;
li {
padding: 1em;
&.success { background-color: @green; color: @white }
&.error { background-color: @red; color: @white }
&.warning { background-color: @yellow; color: @black }
}
}
// accounts specific styles
.service-desc {
margin-top: 4em;
...
...
astakos/im/templates/base.html
View file @
e5726427
...
...
@@ -87,6 +87,15 @@
{% endblock %}
</div>
<div
class=
"page"
>
{% if messages %}
<ul
class=
"messages"
>
{% for message in messages %}
<li
{%
if
message.tags
%}
class=
"{{ message.tags }}"
{%
endif
%}
>
{{ message }}
</li>
{% endfor %}
</ul>
{% endif %}
{% block page.body %}
<div
class=
"maincol"
>
{% block body %}
...
...
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