Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
a5511335
Commit
a5511335
authored
Dec 18, 2017
by
lhark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix templates indentation
parent
1b381ccf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
23 deletions
+13
-23
templates/base.html
templates/base.html
+8
-12
templates/buttons/add.html
templates/buttons/add.html
+0
-1
templates/buttons/edit.html
templates/buttons/edit.html
+0
-1
templates/buttons/history.html
templates/buttons/history.html
+0
-1
templates/buttons/multiple_checkbox_alt.html
templates/buttons/multiple_checkbox_alt.html
+3
-5
templates/buttons/suppr.html
templates/buttons/suppr.html
+0
-1
templates/pagination.html
templates/pagination.html
+2
-2
No files found.
templates/base.html
View file @
a5511335
...
...
@@ -94,18 +94,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<span
class=
"glyphicon glyphicon-log-in"
></span>
Login
</a>
{% endif %}
</li>
</ul>
</li>
</ul>
{% if is_cableur %}
<ul
class=
"nav navbar-nav navbar-right"
>
<li>
<a
href=
"{% url 'preferences:display-options' %}"
>
<span
class=
"glyphicon glyphicon-cog"
></span>
Preferences
</a>
</li>
</ul>
{% endif %}
</div>
</li>
</ul>
{% endif %}
</div>
</div>
</nav>
...
...
@@ -122,9 +122,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div
class=
"col-sm-8 text-left"
>
{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}
<hr>
{% block content %}{% endblock %}
</div>
<div
class=
"col-sm-2 sidenav"
>
...
...
@@ -146,9 +144,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th
scope=
"row"
>
Connexion
</th>
<td
class=
"text-right"
>
{% if request_user.has_access %}
<i
class=
"text-success"
>
jusqu'au {{ request.user.end_access|date:"d b Y" }}
</i>
<i
class=
"text-success"
>
jusqu'au {{ request.user.end_access|date:"d b Y" }}
</i>
{% else %}
<i
class=
"text-danger"
>
Désactivée
</i>
<i
class=
"text-danger"
>
Désactivée
</i>
{% endif %}
</td>
</tr>
...
...
@@ -201,8 +199,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<p>
Re2o 2016 - Gabriel Détraz,
<a
href=
"https://gitlab.rezometz.org/lhark"
>
Goulven Kermarec
</a>
, Augustin Lemesle, Maël Kervella
</p>
</div>
</footer>
{# Read the documentation for more information #}
</body>
</html>
templates/buttons/add.html
View file @
a5511335
...
...
@@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
<a
class=
"btn btn-primary btn-sm"
role=
"button"
href=
"{% url href id %}"
title=
"{{ desc|default:"
Ajouter
"
}}"
>
<i
class=
"glyphicon glyphicon-plus"
></i>
</a>
templates/buttons/edit.html
View file @
a5511335
...
...
@@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
<a
class=
"btn btn-primary btn-sm"
role=
"button"
title=
"{{ desc|default:"
Éditer
"
}}"
href=
"{% url href id %}"
>
<i
class=
"glyphicon glyphicon-edit"
></i>
</a>
templates/buttons/history.html
View file @
a5511335
...
...
@@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
<a
class=
"btn btn-info btn-sm"
role=
"button"
title=
"Historique"
href=
"{% url href name id %}"
>
<i
class=
"glyphicon glyphicon-time"
></i>
</a>
...
...
templates/buttons/multiple_checkbox_alt.html
View file @
a5511335
...
...
@@ -21,20 +21,18 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
<div
class=
"form-group {% if field.form.errors %}{% if field.errors %}has-error{% else %}has-success{% endif %}{% endif %}"
>
<label
class=
"control-label"
for=
"{{ field.id_for_label }}"
>
{{ field.label }}
</label>
<div
id=
"{{ field.auto_id }}"
data-toggle=
"buttons"
>
{% for val in field.field.choices %}
<label
for=
"id_u_{{ val.0 }}"
class=
"btn btn-default{% if val.0 in field.initial %} active{% endif %}"
>
<input
{%
if
val.0
in
field.initial
%}
checked=
"checked"
{%
endif
%}
class=
""
id=
"id_u_{{ val.0 }}"
name=
"{{ field.name }}"
title=
""
type=
"checkbox"
value=
"{{ val.0 }}"
/>
{{ val.1 }}
</label>
<label
for=
"id_u_{{ val.0 }}"
class=
"btn btn-default{% if val.0 in field.initial %} active{% endif %}"
>
<input
{%
if
val.0
in
field.initial
%}
checked=
"checked"
{%
endif
%}
class=
""
id=
"id_u_{{ val.0 }}"
name=
"{{ field.name }}"
title=
""
type=
"checkbox"
value=
"{{ val.0 }}"
/>
{{ val.1 }}
</label>
{% endfor %}
</div>
{% for error in field.errors %}
<div
class=
"help-block"
>
{{ error }}
</div>
<div
class=
"help-block"
>
{{ error }}
</div>
{% endfor %}
<div
class=
"help-block"
>
{{ field.help_text }}
</div>
</div>
templates/buttons/suppr.html
View file @
a5511335
...
...
@@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
<a
class=
"btn btn-danger btn-sm"
role=
"button"
href=
"{% url href id %}"
title=
"{{ desc|default:"
Supprimer
"
}}"
>
<i
class=
"glyphicon glyphicon-trash"
></i>
</a>
templates/pagination.html
View file @
a5511335
...
...
@@ -31,13 +31,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %}
{% for page in list.paginator.page_range %}
{% if list.number
<
=
page
|
add:
"3"
and
list.number
>
= page|add:"-3" %}
<li
class=
"{% if list.number == page %}active{% endif %}"
><a
href=
"{% url_insert_param request.get_full_path page=page %}"
>
{{ page }}
</a></li>
<li
class=
"{% if list.number == page %}active{% endif %}"
><a
href=
"{% url_insert_param request.get_full_path page=page %}"
>
{{ page }}
</a></li>
{% endif %}
{% endfor %}
{% if list.has_next %}
<li><a
href=
"{% url_insert_param request.get_full_path page=list.next_page_number %}"
>
>
</a></li>
<li><a
href=
"{% url_insert_param request.get_full_path page=list.paginator.page_range|length %}"
>
>>
</a></li>
<li><a
href=
"{% url_insert_param request.get_full_path page=list.paginator.page_range|length %}"
>
>>
</a></li>
{% endif %}
</ul>
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