From 852327f423681dd7b927d6baa5ec27558ee79cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Mac=C3=ADas=20Luna?= <lonoak@users.noreply.github.com> Date: Wed, 6 Dec 2017 14:51:48 +0100 Subject: [PATCH] Twig template for croninfo --- modules/cron/templates/croninfo.twig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/cron/templates/croninfo.twig diff --git a/modules/cron/templates/croninfo.twig b/modules/cron/templates/croninfo.twig new file mode 100644 index 000000000..b72688e14 --- /dev/null +++ b/modules/cron/templates/croninfo.twig @@ -0,0 +1,26 @@ +{% set pagetitle = 'Cron result page'|trans %} +{% extends "base.twig" %} + +{% block content %} + <h2>{{ 'Cron result page'|trans }}</h2> + <p>{{ 'Cron is a way to run things regularly on unix systems.'|trans }}<br /><br /></p> + <p>{{ 'Here is a suggestion for a crontab file:'|trans }}<br /><br /> + + <div class="metadatabox metadata-code"> + <code> + {% for url in urls %} + # {{ 'Run cron:'|trans }} [{{ url.tag }}]<br /> + {{ url.int }} curl --silent "{{ url.href }}" > /dev/null 2>&1<br /> + {% endfor %} + </code></div><br /> + </p> + + <p>{{ 'Click here to run the cron jobs:'|trans }}</p> + <ul> + {% for url in urls %} + <li><a href="{{ url.href }}&output=xhtml">{{ 'Run cron:'|trans }} {{ url.tag }}</a></li> + {% endfor %} + </ul> + </p> + +{% endblock %} -- GitLab