Disable non official links
This commit is contained in:
parent
2150bf5b74
commit
3fd46c94d7
6
ofu_app/static/css/main.css
Normal file
6
ofu_app/static/css/main.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.disabled, .disabled:hover {
|
||||||
|
color: #999999;
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.5;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
@ -16,6 +16,7 @@
|
|||||||
<link rel="stylesheet" href="{{ static('libs/font-awesome-4.7.0/css/font-awesome.css') }}">
|
<link rel="stylesheet" href="{{ static('libs/font-awesome-4.7.0/css/font-awesome.css') }}">
|
||||||
<link rel="stylesheet" href="{{ static('libs/bootstrap-4.0.0-beta-dist/css/bootstrap.css') }}">
|
<link rel="stylesheet" href="{{ static('libs/bootstrap-4.0.0-beta-dist/css/bootstrap.css') }}">
|
||||||
<link rel="stylesheet" href="{{ static('css/nav.css') }}">
|
<link rel="stylesheet" href="{{ static('css/nav.css') }}">
|
||||||
|
<link rel="stylesheet" href="{{ static('css/main.css') }}">
|
||||||
{% block css_extra %}{% endblock %}
|
{% block css_extra %}{% endblock %}
|
||||||
<!-- Piwik -->
|
<!-- Piwik -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|||||||
@ -9,10 +9,15 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row text-dark">
|
<div class="row text-dark">
|
||||||
{{ macros.home_item_with_icon(icon='fa-cutlery', url_id='daily-food', title='Food') }}
|
{# {{ macros.home_item_with_icon(icon='fa-cutlery', url_id='daily-food', title='Food') }}
|
||||||
{{ macros.home_item_with_icon(icon='fa-calendar-o', url_id='day-events', title='Events') }}
|
{{ macros.home_item_with_icon(icon='fa-calendar-o', url_id='day-events', title='Events') }}
|
||||||
{{ macros.home_item_with_icon(icon='fa-compass', url_id='donar', title='Nav') }}
|
{{ macros.home_item_with_icon(icon='fa-compass', url_id='donar', title='Nav') }}
|
||||||
{{ macros.home_item_with_icon(icon='fa-th-large', url_id='links-home', title='Links') }}
|
{{ macros.home_item_with_icon(icon='fa-th-large', url_id='links-home', title='Links') }}#}
|
||||||
|
|
||||||
|
{{ macros.home_item_with_icon(icon='fa-cutlery', url_id='daily-food', title='Food') }}
|
||||||
|
{{ macros.home_item_with_icon(icon='fa-calendar-o',link='', title='Events', attr='class=disabled') }}
|
||||||
|
{{ macros.home_item_with_icon(icon='fa-compass', url_id='donar', title='Nav', attr='class=disabled') }}
|
||||||
|
{{ macros.home_item_with_icon(icon='fa-th-large', url_id='links-home', title='Links', attr='class=disabled') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -11,11 +11,11 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro home_item_with_icon(icon, icon_size='fa-4x', url_id='', link='', title='') -%}
|
{% macro home_item_with_icon(icon, icon_size='fa-4x', url_id='', link='', title='', attr='') -%}
|
||||||
<div class="col-12 col-sm-6 col-lg-6 col-xl-6 p-3">
|
<div class="col-12 col-sm-6 col-lg-6 col-xl-6 p-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
{% if url_id %}
|
{% if url_id %}
|
||||||
<a href="{{ url(url_id) }}">
|
<a href="{{ url(url_id) }}" {{ attr }}>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
||||||
aria-hidden="true"></i></h4>
|
aria-hidden="true"></i></h4>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ link }}">
|
<a href="{{ link }}" {{ attr }}>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
||||||
aria-hidden="true"></i></h4>
|
aria-hidden="true"></i></h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user