mirror of
https://github.com/Damillora/Altessimo
synced 2024-11-21 21:47:33 +00:00
Add idol layout to frontend
This commit is contained in:
parent
4c618458c3
commit
caf7886567
@ -26,5 +26,8 @@ class Idol(models.Model):
|
|||||||
|
|
||||||
objects = IdolManager()
|
objects = IdolManager()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = [ 'romanized_name','name' ]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.romanized_name+" (CV: "+self.romanized_voice_actor_name+")"
|
return self.romanized_name+" "+"["+self.branch.acronym+"] "+" (CV: "+self.romanized_voice_actor_name+")"
|
||||||
|
@ -27,6 +27,26 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if idol.voice_actor_name %}
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
Voice Actor Name
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
{{ idol.voice_actor_name }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{% if idol.romanized_voice_actor_name %}
|
||||||
|
<tr>
|
||||||
|
<th scope="row">
|
||||||
|
Romanized Voice Actor Name
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
{{ idol.romanized_voice_actor_name }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -30,6 +30,9 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/songs">Songs</a>
|
<a class="nav-link" href="/songs">Songs</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="/idols">Idols</a>
|
||||||
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="/artists">Artists</a>
|
<a class="nav-link" href="/artists">Artists</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user