Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #1270 from Kiloutre/patch-4

Fancy "new" text when website is on a new commit
Cette révision appartient à :
ewhal 2017-07-23 13:29:56 +10:00 révisé par GitHub
révision 3c34b0a728
3 fichiers modifiés avec 13 ajouts et 1 suppressions

Voir le fichier

@ -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%;
}

Voir le fichier

@ -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";
}

Voir le fichier

@ -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>