mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
Fix the styling of alert html.
This commit is contained in:
10
templates/alert.html.twig
Normal file
10
templates/alert.html.twig
Normal 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>
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user