Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fixed no torrents found + translation

Cette révision appartient à :
akuma06 2017-05-09 03:53:31 +02:00
Parent be6e573465
révision c5b22ff496
3 fichiers modifiés avec 12 ajouts et 4 suppressions

Voir le fichier

@ -8,13 +8,13 @@
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="{{ genRoute "user_profile" "id" (print .Id) "username" .Username }}"><i class="fa fa-cog"></i> Profile</a></li> <li><a href="{{ genRoute "user_profile" "id" (print .Id) "username" .Username }}"><i class="fa fa-cog"></i> Profile</a></li>
<li class="divider"></li> <li class="divider"></li>
<li><a href="{{ genRoute "user_logout" }}"><i class="fa fa-sign-out"></i> Sign-out</a></li> <li><a href="{{ genRoute "user_logout" }}"><i class="fa fa-sign-out"></i> {{ T "sign_out"}}</a></li>
</ul> </ul>
{{ else }} {{ else }}
<a href="#" class="dropdown-toggle profile-image" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Member<span class="caret"></span></a> <a href="#" class="dropdown-toggle profile-image" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ T "member" }}<span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="{{ genRoute "user_login" }}"><i class="fa fa-sign-out"></i> Sign in</a></li> <li><a href="{{ genRoute "user_login" }}"><i class="fa fa-sign-out"></i> {{ T "sign_in"}}</a></li>
<li><a href="{{ genRoute "user_register" }}"><i class="fa fa-cog"></i> Sign Up</a></li> <li><a href="{{ genRoute "user_register" }}"><i class="fa fa-cog"></i> {{ T "sign_up"}}</a></li>
</ul> </ul>
{{end}} {{end}}
</li> </li>

Voir le fichier

@ -1,5 +1,6 @@
{{define "profile_content"}} {{define "profile_content"}}
{{with .UserProfile}} {{with .UserProfile}}
{{ if gt (len .ListTorrents) 0 }}
<div class="table-responsive"> <div class="table-responsive">
<table class="table custom-table-hover"> <table class="table custom-table-hover">
<tr> <tr>
@ -44,5 +45,8 @@
</ul> </ul>
</nav> </nav>
</div> </div>
{{else}}
<h2 style="text-align: center;">{{ T "no_torrents_uploaded" }}</h2>
{{end}}
{{end}} {{end}}
{{end}} {{end}}

Voir le fichier

@ -179,6 +179,10 @@
"id": "404_not_found", "id": "404_not_found",
"translation": "404 Not Found" "translation": "404 Not Found"
}, },
{
"id": "no_torrents_uploaded",
"translation": "No torrents uploaded yet!"
},
{ {
"id": "profile", "id": "profile",
"translation": "Profile" "translation": "Profile"