Skip to content

Commit

Permalink
Merge pull request #687 from sapuri/cleardata-view-presentation
Browse files Browse the repository at this point in the history
cleardata: consolidate music title and difficulty
  • Loading branch information
sapuri authored Aug 8, 2023
2 parents 82d7b40 + f083f6c commit eb8bdca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions main/templates/main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ <h3 class="page-header">ツイート</h2>
</div>

<h2 class="page-header">更新情報</h2>
<p>[2023/08/08] クリア状況ページの表の曲順が他のページの表と異なっていた問題を修正しました</p>
<p>[2022/10/04] メダル画像をUniLab仕様に変更しました</p>
<p>[2019/11/04] 難易度表のレイアウトを変更しました</p>
<p>[2019/05/03] S乱難易度表Wikiの移転に対応しました</p>
Expand Down
4 changes: 1 addition & 3 deletions users/templates/users/cleardata.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h3 id="lv{{ sran_level }}" class="level-folder">Lv{{ sran_level }}</h3>
<thead>
<th>Lv</th>
<th>曲名</th>
<th>難易度</th>
<th>BPM</th>
<th>メダル</th>
<th>BAD数</th>
Expand All @@ -34,8 +33,7 @@ <h3 id="lv{{ sran_level }}" class="level-folder">Lv{{ sran_level }}</h3>
<tr id="music-{{ music.id }}">
<script>$(function() { getClearStatus({{ music.id }}, {{ selected_user.id }}); });</script>
<td class="level">{{ music.level }}</td>
<td class="title"><a href="{% url 'main:ranking_detail' music.id %}">{{ music.title }}</a></td>
<td class="difficulty">{{ music.difficulty }}</td>
<td class="title"><a href="{% url 'main:ranking_detail' music.id %}">{{ music.title }} ({{ music.difficulty }})</a></td>
<td class="bpm">{{ music.bpm|default:'-' }}</td>
<td class="medal">
<img>
Expand Down
2 changes: 1 addition & 1 deletion users/views/cleardata.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def cleardata(request: HttpRequest, username: str, sran_level: int) -> HttpRespo
sran_level_id = sran_level

# 対象レベルの曲を取得
music_list = Music.objects.filter(sran_level=sran_level_id).order_by('level')
music_list = Music.objects.filter(sran_level=sran_level_id).order_by('level', 'title')

# ページング
paginator = Paginator(music_list, 25)
Expand Down

0 comments on commit eb8bdca

Please sign in to comment.