Fix the styling of alert html.

This commit is contained in:
Jonathan H. Wage
2018-09-13 02:28:06 +01:00
parent 9064b75437
commit ea5d6529e6
3 changed files with 17 additions and 12 deletions

10
templates/alert.html.twig Normal file
View File

@@ -0,0 +1,10 @@
<div class="alert caution bg-light-yellow text-dark border">
<table width="100%">
<tr>
<td width="10" class="align-top">
<i class="fas fa-exclamation-circle text-warning mr-2"></i>
</td>
<td><p>{{ alertMessage|raw }}</p></td>
</tr>
</table>
</div>

View File

@@ -82,16 +82,7 @@
{% endif %}
{% if alertMessage is defined %}
<div class="alert caution bg-light-yellow text-dark border">
<table width="100%">
<tr>
<td width="10" class="align-top">
<i class="fas fa-exclamation-circle text-warning mr-2"></i>
</td>
<td><p>{{ alertMessage | raw }}</p></td>
</tr>
</table>
</div>
{% include "alert.html.twig" with {alertMessage:alertMessage} %}
{% endif %}
<div class="row">

View File

@@ -13,9 +13,13 @@
</nav>
{% if project.archived == true %}
<div class="alert caution bg-light-yellow text-dark border"><i class="fas fa-exclamation-circle text-warning mr-2"></i> This project is no longer maintained and has been archived.</div>
{% include "alert.html.twig" with {
alertMessage: 'This project is no longer maintained and has been archived.'
} %}
{% elseif project.active == false %}
<div class="alert warning bg-light-yellow text-dark border"><i class="fas fa-exclamation-circle text-warning mr-2"></i> This project is not being actively maintained. If you are interested in helping to maintain this project, take a look at the open issues on <a href="https://github.com/doctrine/{{ project.repositoryName }}/" target="_blank">GitHub</a> and submit pull requests.</div>
{% include "alert.html.twig" with {
alertMessage: 'This project is not being actively maintained. If you are interested in helping to maintain this project, take a look at the open issues on <a href="https://github.com/doctrine/' ~ project.repositoryName ~ ' /" target="_blank">GitHub</a> and submit pull requests.'
} %}
{% endif %}
<h2>{{ project.name }}</h2>