PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/View/cargo/bridge_redirect_for_cabin.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/View/cargo/bridge_redirect_for_cabin.twig  >  Download  
File: src/Cabin/Bridge/View/cargo/bridge_redirect_for_cabin.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 0 years ago
Size: 1,694 bytes
 

Contents

Class file image Download
{% set can_update = can_update() %}{% set can_delete = can_delete() %}
<a href="{{ cabin_url() }}redirects/{{ cabin|e('url') }}/new" class="pure-button pure-button-primary">
    <i class="fa fa-plus"></i> {{ __("New Redirect") }}
</a>
<hr />
{% if redirects %}
<div class="table full-width">
    <div class="table-row table-header">
        <div class="table-cell">{{ __("Actions") }}</div>
        <div class="table-cell">{{ __("Path") }}</div>
        <div class="table-cell">{{ __("Destination") }}</div>
    </div>
    {% for redir in redirects %}
    <div class="table-row table-body-row">
        <div class="table-cell table-min-width table-pad-right">
            {% if can_update %}
            <a
                class="pure-button pure-button-primary"
                href="{{ cabin_url() }}redirects/{{ cabin|e('url') }}/edit/{{ redir.redirectid|e('html_attr') }}"
            >
                <i class="fa fa-pencil"></i>
                {{ __("Edit") }}
            </a>
            {% endif %}
            {% if can_delete %}
            <a
                class="pure-button pure-button-secondary"
                href="{{ cabin_url() }}redirects/{{ cabin|e('url') }}/delete/{{ redir.redirectid|e('html_attr') }}"
            >
                <i class="fa fa-remove"></i>
                {{ __("Delete") }}
            </a>
            {% endif %}
        </div>
        <div class="table-cell monospace">
            {{ redir.oldpath }}
        </div>
        <div class="table-cell monospace">
            {{ redir.newpath }}
        </div>
    </div>
    {% endfor %}
</div>
{% else %}
    <p>
        {{ __("There are no redirects for this Cabin.") }}
    </p>
{% endif %}