forked from ScoDoc/DocScoDoc
cosmétique accueil
This commit is contained in:
parent
d6c6a08828
commit
20c8f22c7b
@ -279,6 +279,7 @@ class BasePreferences(object):
|
||||
{
|
||||
"initvalue": "Dept",
|
||||
"title": "Nom abrégé du département",
|
||||
"explanation": "acronyme: par exemple R&T, ORTF, HAL",
|
||||
"size": 12,
|
||||
"category": "general",
|
||||
"only_global": True,
|
||||
@ -289,7 +290,7 @@ class BasePreferences(object):
|
||||
{
|
||||
"initvalue": "nom du département",
|
||||
"title": "Nom complet du département",
|
||||
"explanation": "inutilisé par défaut",
|
||||
"explanation": "apparaît sur la page d'accueil",
|
||||
"size": 40,
|
||||
"category": "general",
|
||||
"only_global": True,
|
||||
|
@ -239,6 +239,17 @@ div.box-chercheetud {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
/* Page accueil général */
|
||||
span.dept_full_name {
|
||||
font-style: italic;
|
||||
}
|
||||
span.dept_visible {
|
||||
color: rgb(6, 158, 6);
|
||||
}
|
||||
span.dept_cache {
|
||||
color: rgb(194, 5, 5);
|
||||
}
|
||||
|
||||
div.table_etud_in_accessible_depts {
|
||||
margin-left: 3em;
|
||||
margin-bottom: 2em;
|
||||
|
@ -17,11 +17,13 @@
|
||||
<a class="stdlink {{'link_accessible' if current_user.has_permission(Permission.ScoView, dept=dept.acronym) else 'link_unauthorized'}}"
|
||||
href="{{url_for('scolar.index_html', scodoc_dept=dept.acronym)}}">Département
|
||||
{{dept.preferences.filter_by(name="DeptName").first().value}}
|
||||
{{ dept.preferences.filter_by( name="DeptFullName" ).first().value or "" }}
|
||||
</a>
|
||||
<span class="dept_full_name">
|
||||
{{ dept.preferences.filter_by( name="DeptFullName" ).first().value or "" }}
|
||||
</span>
|
||||
{% if current_user.is_administrator() %}
|
||||
<span class="dept_visibility">
|
||||
{% if dept.visible %}visible{% else %}caché aux utilisateurs{% endif %}
|
||||
<span {% if dept.visible %}class="dept_visible">visible{% else %}class="dept_cache">caché aux utilisateurs{% endif %}
|
||||
</span>
|
||||
<a href="{{ url_for('scodoc.toggle_dept_vis', dept_id=dept.id) }}">
|
||||
{% if dept.visible %}cacher{% else %}rendre visible{% endif %}
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user