mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix templates
This commit is contained in:
@@ -58,7 +58,7 @@ $(document).ready(function(){
|
|||||||
{% for application in applications %}
|
{% for application in applications %}
|
||||||
<li id='app_{{application.get_id}}'>
|
<li id='app_{{application.get_id}}'>
|
||||||
<div>
|
<div>
|
||||||
{% set account = application.get_user_account(user) %}
|
{% set account = application.get_user_account(app['phraseanet.user']) %}
|
||||||
{% if account.is_revoked() is empty %}
|
{% if account.is_revoked() is empty %}
|
||||||
<button type='button' class='revoke app-btn' value='{{application.get_id()}}'>{% trans 'Revoquer l\'access' %}</button>
|
<button type='button' class='revoke app-btn' value='{{application.get_id()}}'>{% trans 'Revoquer l\'access' %}</button>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
{% if error %}
|
{% if error %}
|
||||||
<div class="error alert alert-error">{{ error }}</div>
|
<div class="error alert alert-error">{{ error }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if feed.is_owner(user) %}
|
{% if feed.is_owner(app['phraseanet.user']) %}
|
||||||
<h2>{% trans 'Edition' %}</h2>
|
<h2>{% trans 'Edition' %}</h2>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div id="pub_icon">
|
<div id="pub_icon">
|
||||||
|
@@ -81,7 +81,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td valign="center" align="center">
|
<td valign="center" align="center">
|
||||||
{% if feed.is_owner(user) %}
|
{% if feed.is_owner(app['phraseanet.user']) %}
|
||||||
<form class="no-ajax form_publication" action="/admin/publications/feed/{{feed.get_id()}}/delete/" method="post" style="margin:0;">
|
<form class="no-ajax form_publication" action="/admin/publications/feed/{{feed.get_id()}}/delete/" method="post" style="margin:0;">
|
||||||
<button class="feed_remover btn btn-mini">{% trans 'boutton::supprimer' %}</button>
|
<button class="feed_remover btn btn-mini">{% trans 'boutton::supprimer' %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
{% import 'common/caption_templates/overview.html.twig' as cap_ovr %}
|
{% import 'common/caption_templates/overview.html.twig' as cap_ovr %}
|
||||||
{% import 'common/caption_templates/preview.html.twig' as cap_prev %}
|
{% import 'common/caption_templates/preview.html.twig' as cap_prev %}
|
||||||
|
|
||||||
{% if user %}
|
{% if app['phraseanet.user'] %}
|
||||||
{% set business = app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
{% set business = app['phraseanet.user'].ACL().has_right_on_base(record.get_base_id(), 'canmodifrecord') %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set business = false %}
|
{% set business = false %}
|
||||||
|
@@ -5,9 +5,9 @@
|
|||||||
<meta content="phraseanet" name="generator"/>
|
<meta content="phraseanet" name="generator"/>
|
||||||
|
|
||||||
{% for feed in feeds %}
|
{% for feed in feeds %}
|
||||||
{% set link = feed.get_homepage_link(registry, 'rss') %}
|
{% set link = feed.get_homepage_link(app['phraseanet.registry'], 'rss') %}
|
||||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||||
{% set link = feed.get_homepage_link(registry, 'atom') %}
|
{% set link = feed.get_homepage_link(app['phraseanet.registry'], 'atom') %}
|
||||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
<img class="loader" src="/skins/prod/Basket/Browser/loader.gif" />
|
<img class="loader" src="/skins/prod/Basket/Browser/loader.gif" />
|
||||||
{% if Basket.getValidation() is empty or Basket.getValidation().isInitiator(user) %}
|
{% if Basket.getValidation() is empty or Basket.getValidation().isInitiator(app['phraseanet.user']) %}
|
||||||
<a href="/prod/baskets/{{ Basket.getId() }}/archive/?archive=1" class="archiver archive_toggler" style="display:{{ Basket.getArchived ? 'none' : '' }};">
|
<a href="/prod/baskets/{{ Basket.getId() }}/archive/?archive=1" class="archiver archive_toggler" style="display:{{ Basket.getArchived ? 'none' : '' }};">
|
||||||
<span>
|
<span>
|
||||||
<img src="/skins/prod/Basket/Browser/archive.png"/>
|
<img src="/skins/prod/Basket/Browser/archive.png"/>
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
<td class="content">
|
<td class="content">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
<img class="loader" src="/skins/prod/Basket/Browser/loader.gif" />
|
<img class="loader" src="/skins/prod/Basket/Browser/loader.gif" />
|
||||||
{% if Basket.getValidation() is empty or Basket.getValidation().isInitiator(user) %}
|
{% if Basket.getValidation() is empty or Basket.getValidation().isInitiator(app['phraseanet.user']) %}
|
||||||
<a href="/prod/baskets/{{ Basket.getId() }}/archive/?archive=1" class="archiver archive_toggler" style="display:{{ Basket.getArchived ? 'none' : '' }};">
|
<a href="/prod/baskets/{{ Basket.getId() }}/archive/?archive=1" class="archiver archive_toggler" style="display:{{ Basket.getArchived ? 'none' : '' }};">
|
||||||
<span>
|
<span>
|
||||||
<img src="/skins/prod/Basket/Browser/archive.png"/>
|
<img src="/skins/prod/Basket/Browser/archive.png"/>
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
<button class="login_button new_bridge_button btn btn-inverse">
|
<button class="login_button new_bridge_button btn btn-inverse">
|
||||||
{% trans 'login:: connexion' %}
|
{% trans 'login:: connexion' %}
|
||||||
</button>
|
</button>
|
||||||
<input type="hidden" name="url" value="{{account.get_api().generate_login_url(registry, account.get_api().get_connector().get_name()) }}" />
|
<input type="hidden" name="url" value="{{account.get_api().generate_login_url(app['phraseanet.registry'], account.get_api().get_connector().get_name()) }}" />
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@@ -64,7 +64,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</button>
|
</button>
|
||||||
<input type="hidden" name="url" value="{{api.generate_login_url(registry, api.get_connector().get_name()) }}" />
|
<input type="hidden" name="url" value="{{api.generate_login_url(app['phraseanet.registry'], api.get_connector().get_name()) }}" />
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@@ -54,7 +54,7 @@
|
|||||||
<h1>{% trans 'Fils disponibles' %}</h1>
|
<h1>{% trans 'Fils disponibles' %}</h1>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
{% for feed in feeds.get_feeds() %}
|
{% for feed in feeds.get_feeds() %}
|
||||||
{% if feed.is_publisher(user) %}
|
{% if feed.is_publisher(app['phraseanet.user']) %}
|
||||||
<div class="feed {% if loop.index is odd%}odd{% endif %}">
|
<div class="feed {% if loop.index is odd%}odd{% endif %}">
|
||||||
<span>{{ feed.get_title() }}</span>
|
<span>{{ feed.get_title() }}</span>
|
||||||
{% if feed.is_public() %}
|
{% if feed.is_public() %}
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
<div class="list">
|
<div class="list">
|
||||||
{% set feed_id = entry.get_feed().get_id() %}
|
{% set feed_id = entry.get_feed().get_id() %}
|
||||||
{% for feed in feeds.get_feeds() %}
|
{% for feed in feeds.get_feeds() %}
|
||||||
{% if feed.is_publisher(user) %}
|
{% if feed.is_publisher(app['phraseanet.user']) %}
|
||||||
<div class="feed {% if loop.index is odd%}odd{% endif %} {% if feed_id == feed.get_id() %}selected{% endif %}">
|
<div class="feed {% if loop.index is odd%}odd{% endif %} {% if feed_id == feed.get_id() %}selected{% endif %}">
|
||||||
<span>{{ feed.get_title() }}</span>
|
<span>{{ feed.get_title() }}</span>
|
||||||
<input type="hidden" value="{{ feed.get_id() }}"/>
|
<input type="hidden" value="{{ feed.get_id() }}"/>
|
||||||
|
@@ -46,9 +46,9 @@
|
|||||||
|
|
||||||
{% block rss %}
|
{% block rss %}
|
||||||
{% for feed in feeds %}
|
{% for feed in feeds %}
|
||||||
{% set link = feed.get_user_link(registry, app['phraseanet.user'], 'rss') %}
|
{% set link = feed.get_user_link(app['phraseanet.registry'], app['phraseanet.user'], 'rss') %}
|
||||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||||
{% set link = feed.get_user_link(registry, app['phraseanet.user'], 'atom') %}
|
{% set link = feed.get_user_link(app['phraseanet.registry'], app['phraseanet.user'], 'atom') %}
|
||||||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user