Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
c5be75b6
authored
Nov 11, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add messages support to base.html
parent
1bdbabd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
circle/dashboard/templates/dashboard/base.html
+15
-5
No files found.
circle/dashboard/templates/dashboard/base.html
View file @
c5be75b6
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
</head>
</head>
<body>
<body>
<div
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"navbar navbar-inverse navbar-fixed-top"
>
<a
class=
"navbar-brand"
href=
"/dashboard/"
>
{% block header-site %}CIRCLE{% endblock %}
</a>
<a
class=
"navbar-brand"
href=
"/dashboard/"
>
{% block header-site %}CIRCLE{% endblock %}
</a>
<!-- temporarily -->
<!-- temporarily -->
...
@@ -30,15 +29,26 @@
...
@@ -30,15 +29,26 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
{% block content %}
{% block messages %}
<h1
class=
"alert alert-error"
>
Please override "content" block.
</h1>
{% if messages %}
{% endblock %}
<div
class=
"messagelist"
>
{% for message in messages %}
<div
class=
"alert
{% if message.tags %} alert-{% if message.tags == "
error
"
%}
danger
{%
else
%}{{
message
.
tags
}}{%
endif
%}{%
endif
%}"
>
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock messages %}
{% block content %}
<h1
class=
"alert alert-error"
>
Please override "content" block.
</h1>
{% endblock %}
<hr
/>
<hr
/>
<footer>
<footer>
<p>
©
Company 2013
</p>
<p>
©
Company 2013
</p>
</footer>
</footer>
</div>
<!-- /container -->
</div>
<!-- /container -->
</body>
</body>
{% block extra_js %}
{% block extra_js %}
{% endblock %}
{% endblock %}
...
...
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