Resources page added
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 16s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 3s
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 16s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 3s
This commit is contained in:
39
boxes/templates/boxes/resources_list.html
Normal file
39
boxes/templates/boxes/resources_list.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Resources - LabHelper{% endblock %}
|
||||
|
||||
{% block page_header %}
|
||||
<div class="page-header">
|
||||
<h1><i class="fas fa-folder-open"></i> Resources</h1>
|
||||
<p class="breadcrumb">All links and files from things</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="section">
|
||||
<h2><i class="fas fa-list"></i> All Resources</h2>
|
||||
{% if resources %}
|
||||
<ul style="list-style: none; padding: 0;">
|
||||
{% for resource in resources %}
|
||||
<li style="padding: 8px 0; border-bottom: 1px solid #eee;">
|
||||
{% if resource.type == 'link' %}
|
||||
<i class="fas fa-link" style="color: #667eea;"></i>
|
||||
{% else %}
|
||||
<i class="fas fa-file" style="color: #667eea;"></i>
|
||||
{% endif %}
|
||||
<strong>{{ resource.thing_name }}</strong>:
|
||||
{% if resource.type == 'link' %}
|
||||
<a href="{{ resource.url }}" target="_blank" rel="noopener noreferrer">{{ resource.title }}</a>
|
||||
{% else %}
|
||||
<a href="{{ resource.url }}">{{ resource.title }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p style="color: #888;">No resources found.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user