← 메인 화면프로젝트 자료·코드
← 자료 목록

cc/startup_app/templates/materials_detail.html

프로그램·코드 · 2.2 KB원본 다운로드

원본 내용을 읽기 전용으로 표시합니다.

  1. {% extends 'materials_base.html' %}
  2. {% block title %}{{ entry.path }}{% endblock %}
  3. {% block content %}
  4. <a href="{{ url_for('materials.index') }}">← 자료 목록</a><h1 class="filename">{{ entry.path }}</h1>
  5. <div class="toolbar"><span>{{ labels[entry.kind] }} · {{ size_label(entry.size) }}</span><a class="button" href="{{ url_for('materials.download', file_id=entry.id) }}">원본 다운로드</a>{% if entry.kind == 'map' %}<a class="button" href="{{ url_for('materials.detail', file_id=entry.id) }}">지도 보기</a><a class="button" href="{{ url_for('materials.detail', file_id=entry.id, view='source') }}">HTML 코드 보기</a>{% endif %}</div>
  6. {% if entry.kind == 'image' %}<div class="image-wrap"><img src="{{ url_for('materials.image', file_id=entry.id) }}" alt="{{ entry.path }}"></div>
  7. {% elif entry.kind == 'map' and not source %}<p class="muted">확대·축소와 지도 안의 레이어 메뉴를 이용할 수 있습니다. 파일이 커서 첫 표시에는 시간이 걸릴 수 있습니다.</p><iframe class="map-preview" title="{{ entry.path }} 지도 미리보기" src="{{ url_for('materials.preview', file_id=entry.id) }}" sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>
  8. {% elif entry.kind == 'csv' and not source %}<p>전체 {{ '{:,}'.format(entry.rows) }}행 · {{ entry.columns }}열 / 처음 {{ rows|length }}행 미리보기. 전체 자료는 원본 다운로드로 받을 수 있습니다.</p><div class="table-wrap data-table"><table><thead><tr>{% for value in header %}<th>{{ value }}</th>{% endfor %}</tr></thead><tbody>{% for row in rows %}<tr>{% for value in row %}<td>{{ value }}</td>{% endfor %}</tr>{% endfor %}</tbody></table></div>
  9. {% else %}<p class="muted">{% if truncated %}파일 앞부분만 표시합니다(최대 약 240KB / 3,000줄). 전체 내용은 원본 다운로드를 이용해 주세요.{% else %}원본 내용을 읽기 전용으로 표시합니다.{% endif %}</p><div class="code-wrap" tabindex="0" aria-label="파일 내용"><ol class="code">{% for line in lines %}<li><code>{{ line or ' ' }}</code></li>{% endfor %}</ol></div>{% endif %}
  10. <details class="checksum"><summary>파일 확인 정보</summary><p>SHA-256: <code>{{ entry.sha256 }}</code></p></details>
  11. {% endblock %}
파일 확인 정보

SHA-256: 61533bf0b9ff0978411fca039242898ccf63b2b6dda15b48f0c3d8dcf6982407