Merge pull request #1270 from Kiloutre/patch-4
Fancy "new" text when website is on a new commit
Cette révision appartient à :
révision
3c34b0a728
|
@ -395,6 +395,15 @@ textarea { max-width: 100%; }
|
|||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
#commit.new:after {
|
||||
content: "new";
|
||||
color: red;
|
||||
font-size: 10pt;
|
||||
vertical-align: top;
|
||||
line-height: 5px;
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
@ -76,6 +76,9 @@ parseAllDates()
|
|||
|
||||
//Apply back lang, mascot & theme cookie
|
||||
//TODO
|
||||
|
||||
//Add fancy "new" text at bottom of page
|
||||
document.getElementById("commit").className = "new";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
<div class="footer-opt">
|
||||
<p><a href="/settings">{{ T("change_settings") }}</a></p>
|
||||
</div>
|
||||
<span><i>Powered by <a href="#">Nyaa Pantsu</a> v{{ Config.Version }} - commit <a href="https://github.com/NyaaPantsu/nyaa/commit/{{ Config.Build }}">{{ Config.Build }}</a></i></span>
|
||||
<span><i>Powered by <a href="#">Nyaa Pantsu</a> v{{ Config.Version }} - commit <a id="commit" href="https://github.com/NyaaPantsu/nyaa/commit/{{ Config.Build }}">{{ Config.Build }}</a></i></span>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
Référencer dans un nouveau ticket