From 14a4772614078ab02326a35370ee07033c6955bf Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sat, 29 Nov 2014 13:45:36 +0100 Subject: [PATCH] unused templates removed See #370 --- views/templates/admin/db_migration.html | 13 ---- views/templates/cursus/courses.html | 18 ----- views/templates/cursus/dashboard.html | 27 ------- views/templates/cursus/educational_path.html | 1 - views/templates/cursus/empty.html | 8 -- views/templates/cursus/multiple_paths.html | 33 --------- views/templates/deactivated_profile.html | 5 -- views/templates/profile.html | 78 -------------------- views/templates/profile/edit.html | 33 --------- views/templates/profile/init.html | 19 ----- views/templates/signin_confirm.html | 7 -- views/templates/signin_form.html | 27 ------- 12 files changed, 269 deletions(-) delete mode 100644 views/templates/admin/db_migration.html delete mode 100644 views/templates/cursus/courses.html delete mode 100644 views/templates/cursus/dashboard.html delete mode 100644 views/templates/cursus/educational_path.html delete mode 100644 views/templates/cursus/empty.html delete mode 100644 views/templates/cursus/multiple_paths.html delete mode 100644 views/templates/deactivated_profile.html delete mode 100644 views/templates/profile.html delete mode 100644 views/templates/profile/edit.html delete mode 100644 views/templates/profile/init.html delete mode 100644 views/templates/signin_confirm.html delete mode 100644 views/templates/signin_form.html diff --git a/views/templates/admin/db_migration.html b/views/templates/admin/db_migration.html deleted file mode 100644 index ea5552d..0000000 --- a/views/templates/admin/db_migration.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends 'admin/main.html' %} -{% block admin_content %} -

{{ page.title }}

-

Instructions

-
    -
  1. Modifiez le schéma XML de la base de données.
  2. -
  3. Placez-vous dans le répertoire models/
  4. -
  5. Exécutez propel-gen diff. La commande doit générer un fichier models/build/migrations/PropelMigration_xxx.php.
  6. -
  7. Exécutez ./migrate.sh. Le script doit générer un fichier migration.sql.
  8. -
  9. Exécutez propel-gen om pour mettre à jour les classes des modèles.
  10. -
  11. Dans phpMyAdmin, ouvrez la fenêtre SQL, et sélectionnez le fichier migration.sql précédemment généré. Exécutez-le.
  12. -
-{% endblock %} diff --git a/views/templates/cursus/courses.html b/views/templates/cursus/courses.html deleted file mode 100644 index 9a78dbc..0000000 --- a/views/templates/cursus/courses.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -
-

{{ page.title }}

-

Semestre 1

- -

Semestre 2

- -
-{% endblock %} diff --git a/views/templates/cursus/dashboard.html b/views/templates/cursus/dashboard.html deleted file mode 100644 index 004e740..0000000 --- a/views/templates/cursus/dashboard.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -
-{# Intro #} -

{{ page.title }}

-

Contenus non validés

-{% if page.contents is defined and page.contents %} - - - -{% for c in page.contents %} - - - - - - - - -{% endfor %} - -
TitreCursusCoursAuteurDate
{{ c.title }}{% if c.cursus is defined %}{{ c.cursus.name }}{% endif %}{% if c.course is defined %}{{ c.course.name }}{% endif %}{{ c.author.name }}{{ _m.date(c.date) }}Voir
-{% else %} -

Il n’y a pas de contenus non validés pour ce cursus.

-{% endif %} -
-{% endblock %} diff --git a/views/templates/cursus/educational_path.html b/views/templates/cursus/educational_path.html deleted file mode 100644 index beef79e..0000000 --- a/views/templates/cursus/educational_path.html +++ /dev/null @@ -1 +0,0 @@ -{% extends 'cursus/base.html' %} diff --git a/views/templates/cursus/empty.html b/views/templates/cursus/empty.html deleted file mode 100644 index 19ceae3..0000000 --- a/views/templates/cursus/empty.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -
-{# Intro #} -

{{ page.cursus.name }}

-
{{ page.cursus.introduction|md2html|raw }}
-
-{% endblock %} diff --git a/views/templates/cursus/multiple_paths.html b/views/templates/cursus/multiple_paths.html deleted file mode 100644 index 4731266..0000000 --- a/views/templates/cursus/multiple_paths.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -{# Menu des matières #} - -
-{# Intro #} -

{{ page.cursus.name }}

-
{{ page.cursus.introduction|md2html|raw }}
-{# News #} -{% include 'utils/news.html' %} -
-{% if page.cursus.other_links is defined and page.cursus.other_links is not empty %} -{# Menu 'Autres ressources' #} - -{% endif %} -{% endblock %} diff --git a/views/templates/deactivated_profile.html b/views/templates/deactivated_profile.html deleted file mode 100644 index 90e4393..0000000 --- a/views/templates/deactivated_profile.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'profile.html' %} -{% block content %} -

Profil de {{ page.user.displayed_name }}

-

Ce compte est désactivé.

-{% endblock %} diff --git a/views/templates/profile.html b/views/templates/profile.html deleted file mode 100644 index 76f4045..0000000 --- a/views/templates/profile.html +++ /dev/null @@ -1,78 +0,0 @@ -{% extends 'main.html' %} -{% block metas %} -{% if page.user.noindex is defined and page.user.noindex %}{{ _m.robots(['noindex']) }}{% else %}{{ parent() }}{% endif %} -{% endblock %} -{% block content_attrs %}class="profile" itemtype="http://schema.org/Person" itemscope{# - #}{% if page.user.id is defined and page.user.id %} data-user-id="{{ page.user.id }}"{% endif %}{% endblock %} -{% block content %} - -
- {% if page.user.avatar is defined and page.user.avatar %}{# - #}{# - #}{% endif %} -
- -
- {% block profile_title %}

{{ page.user.displayed_name }}{# - #}{% if page.user.pseudo is defined and page.user.pseudo %}{# - #} ({{ page.user.pseudo }}){# - #}{% endif %}

{% endblock %} - -
- {% if page.user.status is defined and page.user.status %}{# - #}
Statut :
{{ page.user.status }}
{# - #}{% endif %} - {% if page.user.birthdate is defined and page.user.birthdate %}{# - #}
Date de naissance :
{# - #}
{# - #}{% if page.user.age is defined and page.user.age %} ({{ page.user.age }} ans)
{% endif %} - {% else %}{# - #}{% if page.user.age is defined and page.user.age %}{# - #}
Âge :
{{ page.user.age }} ans
{# - #}{% endif %}{# - #}{% endif %} - {% if page.user.email is defined and page.user.email %}{# - #}
E-mail :
{{ page.user.email }}
{# - #}{% endif %} - {% if page.user.phone is defined and page.user.phone %}{# - #}
Téléphone :
{{ page.user.phone }}
{# - #}{% endif %} - {% if page.user.website is defined and page.user.website %}{# - #}
Site Web
{# - #}{% endif %} - {% if page.user.entry_date is defined and page.user.entry_date %}{# - #}
Date d'inscription :
{{ _m.date(page.user.entry_date) }}
{# - #}{% endif %} - {% if page.user.last_entry_date is defined and page.user.last_entry_date %}{# - #}
Date de dernière inscription :
{{ _m.date(page.user.last_entry_date) }}
{# - #}{% endif %} - {% if page.user.last_visit is defined and page.user.last_visit %}{# - #}
Dernière visite :
{{ _m.date(page.user.last_visit) }}
{# - #}{% endif %} - {% if page.user.visits_number is defined and page.user.visits_number %}{# - #}
Nombre de visites :
{{ page.user.visits_number }}
{# - #}{% endif %} - {% if page.user.contents_count is defined and page.user.contents_count %}{# - #}
Nombre de contenus proposés :
{{ page.user.contents_count }}
{# - #}{% endif %} - {% if page.user.rank is defined and page.user.rank %}{# - #}
Rang :
{{ page.user.rank }}
{# - #}{% endif %} -
- - {% if page.user.description is defined and page.user.description %}{# - #}
{{ page.user.description|md2html|raw }}
{# - #}{% endif %} - - {% if page.user.options is defined and page.user.options is not empty %} - - {% endif %} - -
- -{% endblock %} diff --git a/views/templates/profile/edit.html b/views/templates/profile/edit.html deleted file mode 100644 index 44c9abd..0000000 --- a/views/templates/profile/edit.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -

{{ page.title }}

- -
- - - - - -

Genre :{# - #}{# - #} - -

Pour modifier votre avatar, rendez-vous sur Gravatar.

- - - - -
- Options - {% for opt in page.user.options %} - - {% endfor %} -
- - {{ _m.submit('Valider') }} -
-{% endblock %} diff --git a/views/templates/profile/init.html b/views/templates/profile/init.html deleted file mode 100644 index c313134..0000000 --- a/views/templates/profile/init.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -

{{ page.title }}

-{% if page.infos is defined %} - -{% endif %} -
-{% for field in page.form.fields %} - -{% endfor %} - -{{ _m.submit('Valider') }} -
-{% endblock %} diff --git a/views/templates/signin_confirm.html b/views/templates/signin_confirm.html deleted file mode 100644 index 3c03ab4..0000000 --- a/views/templates/signin_confirm.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -

{{ page.title }}

-

Votre inscription a bien été enregistrée. -Consultez {% if page.inbox_url %}{% endif %}vos emails{% if page.inbox_url %}{% endif %} pour -valider votre compte.

-{% endblock %} diff --git a/views/templates/signin_form.html b/views/templates/signin_form.html deleted file mode 100644 index 6d218ee..0000000 --- a/views/templates/signin_form.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends 'main.html' %} -{% block content %} -

{{ page.title }}

-
- - - - - - - - - - - - -

Une fois votre inscription validée, vous recevrez par email un lien pour choisir votre pseudo et mot de passe.

- - - -
-{% endblock %}