Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2021-03-27 03:32:40 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-03-27 03:32:40 +0300
commit045206429b15d5d463db090568897e6ba83d8d9c (patch)
treeed2d796d89e9cfe97b1dc2b8e0a3c734fbb7a465 /templates
parentd900172b874069a6f6a4cfeaafdf6dba34488c7c (diff)
Extract the HTML from the Footer::getDemoMessage
Renames getDemoMessage to getGitRevisionInfo. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.twig15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/footer.twig b/templates/footer.twig
index 8939308744..dee6a3a9c3 100644
--- a/templates/footer.twig
+++ b/templates/footer.twig
@@ -12,7 +12,20 @@
{% if is_demo %}
<div id="pma_demo">
- {{ demo_message|raw }}
+ {% apply notice %}
+ <a href="{{ url('/') }}">{% trans 'phpMyAdmin Demo Server' %}:</a>
+ {% if git_revision_info is not empty %}
+ {% set revision_info -%}
+ <a target="_blank" rel="noopener noreferrer" href="{{ git_revision_info.revisionUrl }}">{{ git_revision_info.revision }}</a>
+ {%- endset %}
+ {% set branch_info -%}
+ <a target="_blank" rel="noopener noreferrer" href="{{ git_revision_info.branchUrl }}">{{ git_revision_info.branch }}</a>
+ {%- endset %}
+ {{ 'Currently running Git revision %1$s from the %2$s branch.'|trans|format(revision_info, branch_info)|raw }}
+ {% else %}
+ {% trans 'Git information missing!' %}
+ {% endif %}
+ {% endapply %}
</div>
{% endif %}