Skip to content

Instantly share code, notes, and snippets.

@smzn
Created December 9, 2025 03:36
Show Gist options
  • Select an option

  • Save smzn/36390ea0c65191491d8646a0fb1569b7 to your computer and use it in GitHub Desktop.

Select an option

Save smzn/36390ea0c65191491d8646a0fb1569b7 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>「{{ category.name }}」のアプリ一覧</title>
</head>
<body>
<p>
<a href="{{ url_for('index') }}">← トップページ(すべて表示)に戻る</a>
</p>
<hr>
<h1>📂 カテゴリ: {{ category.name }}</h1>
<p>このカテゴリには <strong>{{ applications|length }}</strong> 件のアプリケーションが登録されています。</p>
<table border="1" cellspacing="0" cellpadding="5" width="100%">
<thead>
<tr bgcolor="#f0f0f0">
<th>ID</th>
<th>アプリ名 (Title)</th>
<th>部署 / チーム</th>
<th>説明</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for app in applications %}
<tr>
<td>{{ app.id }}</td>
<td>
<strong>{{ app.title }}</strong>
</td>
<td>
{{ app.department }}<br>
<small>({{ app.team_name }})</small>
</td>
<td>{{ app.description }}</td>
<td>
<a href="{{ url_for('application_detail', id=app.id) }}">詳細を見る</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5" align="center">このカテゴリにはまだアプリケーションがありません。</td>
</tr>
{% endfor %}
</tbody>
</table>
<br>
<hr>
<h3>他のカテゴリを見る</h3>
<ul>
<li><a href="{{ url_for('index') }}">すべて表示</a></li>
{% for cat in categories %}
<li>
{% if cat.id != category.id %}
<a href="{{ url_for('category_detail', id=cat.id) }}">
{{ cat.name }}
</a>
{% else %}
<strong>{{ cat.name }}</strong> (表示中)
{% endif %}
</li>
{% endfor %}
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment