Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 026914f3 authored by Arnaud Bey's avatar Arnaud Bey
Browse files

breadcrumb

parent e0ce0599
{% extends "FOSUserBundle::layout.html.twig" %}
{% block fos_user_content %}
<div class="panel panel-default">
<div class="panel-heading">
<h4>
{{ "edit_password" | trans}}
<span class="pull-right">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
</span>
</h4>
</div>
<div class="panel-body">
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_me')}}">Moi</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'edit_password' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-body">
{% include "FOSUserBundle:ChangePassword:change_password_content.html.twig" %}
</div>
</div>
......
......@@ -24,7 +24,7 @@
<div class="btn-group-sm btn-group-vertical">
{% if logged %}
<a href="{{ path('fos_user_security_logout') }}" class="btn btn-primary btn-sm">
<i class="fa fa-sign-out" aria-hidden="true"></i>
<i class="fas fa-sign-out-alt"></i>
<span class="hidden-xs">{{ 'logout' | trans }}</span>
</a>
{% if is_granted('ROLE_ADMIN') %}
......@@ -38,7 +38,7 @@
</a>
{% endif %}
<a href="{{ path('fos_user_security_login') }}" class="btn btn-primary btn-sm">
<i class="fa fa-sign-in" aria-hidden="true"></i>
<i class="fas fa-sign-in-alt"></i>
<span class="hidden-xs">{{ 'login' | trans }}</span>
</a>
{% endif %}
......
......@@ -4,8 +4,15 @@
{% block body -%}
{% set languages = get_languages() %}
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Créer</li>
</ol>
</nav>
<div class="row">
<div class="col-sm-4 mb-2">
<div class="card">
<div class="card-body">
......
......@@ -43,6 +43,7 @@
<div class="col-12">
<div class="alert alert-light" role="alert">
Connecté(s): &nbsp;
{% for user in get_connected(500) %}
{{ pmacros.playerPicAndName(user) }} &nbsp;
{% endfor %}
......
......@@ -5,6 +5,13 @@
{% block body -%}
{% set languages = get_languages() %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Moi</li>
</ol>
</nav>
<div class="row">
<div class="col-sm-4 mb-2">
<div class="card">
......
......@@ -5,6 +5,13 @@
{% block body -%}
{% set languages = get_languages() %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Jouer</li>
</ol>
</nav>
<div class="row">
<!-- TRAIN -->
<div class="col-sm-4 mb-2">
......
{% extends '::base.html.twig' %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_me')}}">Moi</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'found' | trans }} {{ language.value | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'found' | trans }} {{ language.value | trans }}
<span class="float-right">
<button type="button" class="btn btn-outline-secondary btn-sm" data-order="asc" onclick="sorter.sort('form', this, '#found', '#found li')">
<i class="fa fa-sort" aria-hidden="true"></i> A-Z
......
......@@ -51,7 +51,7 @@
<div class="sortable" style="margin-bottom:2px" data-form="{{ foundable.form }}" data-points="{{ foundable.points }}" data-percent="{{ percent }}" data-length="{{ foundable.form|length }}">
<div style="float:left; width:80px">
<div class="label label-default">{{ percent }}</div> &nbsp;
<span class="btn btn-sm" onClick="wiktionnary.getDef('{{ foundable.words[0].root.content }}', '{{ foundable.grid.language.value |slice(0,2) }}')">
<span class="btn btn-sm" onClick="wiktionnary.getDef('{{ foundable.words[0].root.value }}', '{{ foundable.grid.language.value |slice(0,2) }}')">
<i class="fab fa-wikipedia-w"></i>
</span>
</div>
......
......@@ -3,11 +3,16 @@
{% block title %}{{ 'challenge' | trans }}{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_play')}}">Jouer</a></li>
<li class="breadcrumb-item active" aria-current="page">Défier</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'challenge_someone' | trans }}
</div>
<div class="card-body">
{{ form(form) }}
</div>
......
......@@ -3,11 +3,16 @@
{% block title %}{{ 'challenge_sent' | trans }}{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_play')}}">Jouer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'reply!' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'reply!' | trans }}
</div>
<div class="card-body">
{{ form(form) }}
</div>
......
......@@ -3,9 +3,18 @@
{% block title %}Massive Builder{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('my_massives_under_construction')}}">{{ 'my_massives_under_construction' | trans }}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ massive.name }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{{ 'massive' | trans }} - <strong>{{ massive.name }}</strong> {% if massive.description %}({{ massive.description }}){% endif %}
<span class="float-right">
<span class="btn btn-outline-secondary btn-sm" onclick="builder.export({{massive.id}})">
<i class="fa fa-clipboard" aria-hidden="true"></i>
......@@ -31,15 +40,19 @@
<div class="tab-pane fade show active" id="rounds">
<div class="row">
<div class="col mt-3">
<h5 class="float-right">
<button type="button" class="btn btn-sm btn-secondary dropdown-toggle" data-toggle="dropdown" id="dropdownMenuButton" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-plus" aria-hidden="true"></i> {{ 'add_round' | trans }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a data-message="Génération d'une grille rush" class="dropdown-item please-wait" href="{{ path('massive_add_rush', {"id": massive.id}) }}">{{ 'rush' | trans }}</a>
<a data-message="Ajout d'une partie conquer" class="dropdown-item please-wait" href="{{ path('massive_add_conquer', {"id": massive.id}) }}">{{ 'conquer' | trans }}</a>
</div>
</h5>
<div class="row">
<div class="col">
<h5 class="float-right">
<button type="button" class="btn btn-sm btn-secondary dropdown-toggle" data-toggle="dropdown" id="dropdownMenuButton" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-plus" aria-hidden="true"></i> {{ 'add_round' | trans }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a data-message="Génération d'une grille rush" class="dropdown-item please-wait" href="{{ path('massive_add_rush', {"id": massive.id}) }}">{{ 'rush' | trans }}</a>
<a data-message="Ajout d'une partie conquer" class="dropdown-item please-wait" href="{{ path('massive_add_conquer', {"id": massive.id}) }}">{{ 'conquer' | trans }}</a>
</div>
</h5>
</div>
</div>
<ul class="list-group">
{% for i, round in massive.rounds %}
......
......@@ -3,16 +3,23 @@
{% block title %}Massive{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'new_massive' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'new_massive' | trans }}
<span class="float-right">
<a class="btn btn-outline-secondary" href="{{ path('json_import_form') }}">
<i class="fa fa-caret-square-o-right" aria-hidden="true"></i>
{{ "json_import" | trans }}
</a>
</span>
<span class="float-right">
<a class="btn btn-outline-secondary" href="{{ path('json_import_form') }}">
<i class="fa fa-caret-square-o-right" aria-hidden="true"></i>
{{ "json_import" | trans }}
</a>
</span>
</div>
<div class="card-body">
{{ form(form) }}
......
......@@ -3,10 +3,17 @@
{% block title %}{{ 'massives' | trans }}{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_play')}}">Jouer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'massives' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'massives' | trans }}
<span class="float-right">
<button type="button" class="btn btn-outline-secondary btn-sm" data-order="asc" onclick="sorter.sort('popularity', this, '.games', '.game')">
<i class="fa fa-sort" aria-hidden="true"></i> {{ "popularity" | trans }}
......
......@@ -3,19 +3,24 @@
{% block title %}{{ 'my_massives_under_construction' | trans }}{% endblock %}
{% block body -%}
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'my_massives_under_construction' | trans }}
</div>
<ul class="list-group">
{% for massive in massives %}
<li class="list-group-item">
<a href="{{ path('massive_builder', {"id": massive.id}) }}">
{{ massive.name }} {% if massive.description %}<span class="text-muted">({{ massive.description}})</span>{% endif %}
</a>
</li>
{% endfor %}
</ul>
</div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'my_massives_under_construction' | trans }}</li>
</ol>
</nav>
<div class="card">
<ul class="list-group list-group-flush">
{% for massive in massives %}
<li class="list-group-item">
<a href="{{ path('massive_builder', {"id": massive.id}) }}">
{{ massive.name }} {% if massive.description %}<span class="text-muted">({{ massive.description}})</span>{% endif %}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
......@@ -3,32 +3,37 @@
{% block title %}{{ 'my_massives_published' | trans }}{% endblock %}
{% block body -%}
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'my_massives_published' | trans }}
</div>
<ul class="list-group">
{% for massive in massives %}
<li class="list-group-item">
<a href="{{ path('massive_summary', {"id": massive.id}) }}">
{{ massive.name }} {% if massive.description %}<span class="text-muted">({{ massive.description}})</span>{% endif %}
</a>
<span class="float-right">
<span class="label label-info">
<i class="fa fa-users" aria-hidden="true"></i>
<span class="hidden-xs"> {{ "popularity" | trans }}:</span> {{ getActivityCount(massive) }}
</span>&nbsp;
<span class="label label-default">
{{ massive.accessType.name | trans }}
<a class="btn btn-outline-secondary btn-sm" data-html="true" data-trigger="click" data-toggle="popover" data-container="body" data-placement="left" title="Lien partie"
data-content="<input type='text' value='{{ app.request.scheme ~'://' ~ app.request.httpHost ~ path('massive_play', {"code": massive.code})}}'/>">
<i class="fa fa-link" aria-hidden="true"></i>
</a>
</span>
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'my_massives_published' | trans }}</li>
</ol>
</nav>
<div class="card">
<ul class="list-group list-group-flush">
{% for massive in massives %}
<li class="list-group-item">
<a href="{{ path('massive_summary', {"id": massive.id}) }}">
{{ massive.name }} {% if massive.description %}<span class="text-muted">({{ massive.description}})</span>{% endif %}
</a>
<span class="float-right">
<span class="label label-info">
<i class="fa fa-users" aria-hidden="true"></i>
<span class="hidden-xs"> {{ "popularity" | trans }}:</span> {{ getActivityCount(massive) }}
</span>&nbsp;
<span class="label label-default">
{{ massive.accessType.name | trans }}
<a class="btn btn-outline-secondary btn-sm" data-html="true" data-trigger="click" data-toggle="popover" data-container="body" data-placement="left" title="Lien partie"
data-content="<input type='text' value='{{ app.request.scheme ~'://' ~ app.request.httpHost ~ path('massive_play', {"code": massive.code})}}'/>">
<i class="fa fa-link" aria-hidden="true"></i>
</a>
</span>
</li>
{% endfor %}
</ul>
</div>
</span>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
......@@ -3,10 +3,18 @@
{% block title %}Massive ranking{% endblock %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('my_massives_published')}}">{{"my_massives_published"|trans}}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ "summary" | trans }} - {{ massive.name }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ "summary" | trans }} <strong>{{ massive.name }}</strong>
<span class="float-right">
<span class="btn btn-sm btn-outline-secondary" onclick="builder.export({{massive.id}})">
<i class="fa fa-clipboard" aria-hidden="true"></i>
......
......@@ -4,12 +4,17 @@
{% block body -%}
{% import _self as my_macros %}
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'rankings' | trans }}
</div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_me')}}">Moi</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'rankings' | trans }}</li>
</ol>
</nav>
<div class="card">
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-justified" role="tablist">
<li class="nav-item" role="presentation"><a class="nav-link active" href="#massives" aria-controls="massives" role="tab" data-toggle="tab">{{ "massives" | trans }}</a></li>
......
{% extends '::base.html.twig' %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_create')}}">Créer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'json_import' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'json_import' | trans }}
<span class="float-right">
<a class="btn btn-outline-secondary" href="{{ path('massive') }}">
<i class="fa fa-plus" aria-hidden="true"></i> {{ 'new_massive' | trans }}
</a>
</span>
</div>
<div class="card-body">
<textarea required="required" id="import-json" style="width:100%; height:200px;"></textarea>
<span onclick="builder.import()" class="btn btn-outline-secondary btn-primary">Importer</span>
<span onclick="builder.import()" class="btn btn-primary">Importer</span>
</div>
</div>
{% endblock %}
......@@ -4,10 +4,17 @@
{% block body -%}
{% import _self as my_macros %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_play')}}">Jouer</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'games_started' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'games_started' | trans }}
<span class="float-right">
<button type="button" class="btn btn-outline-secondary btn-sm" data-order="asc" onclick="sorter.sort('gametype', this, '.games', '.game')">
<i class="fa fa-sort" aria-hidden="true"></i> {{ "gametype" | trans }}
......
{% extends '::base.html.twig' %}
{% block body -%}
<nav aria-label="breadcrumb">
<ol class="breadcrumb" style="background-color: #fff;">
<li class="breadcrumb-item"><a href="{{path('home')}}">Accueil</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{path('home_me')}}">Moi</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ 'my_friends' | trans }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header">
{% include "MagicWordBundle:Common:backtohome.html.twig" %}
{{ 'my_friends' | trans }}
</div>
<ul class="list-group">
<ul class="list-group list-group-flush">
{% for player in app.user.friends %}
<li class="list-group-item">
<a href="{{ path('profile', {"id": player.id}) }}">{{ player.username }}</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment