{% extends "user_layout.html" %} {% block title %}My Short URLs - BZOD{% endblock %} {% block active_urls %}active{% endblock %} {% block header_title %}My Short URL Library{% endblock %} {% block content %} {% if let Some(err) = error %}
| Short Link | Destination | QR Code | Health | Tags | Actions |
|---|---|---|---|---|---|
| No short URLs created yet. | |||||
|
{{ base_url.replace("https://", "").replace("http://", "") }}/{{ url.code }}
{% if url.is_password_protected() %}
{% endif %}
{% if let Some(title) = url.title.as_deref() %}
{% if !title.is_empty() %}
{{ title }}
{% endif %}
{% endif %}
Created {{ url.created_at[0..10] }}
|
{{ url.destination }}
{% if let Some(desc) = url.description.as_deref() %}
{% if !desc.is_empty() %}
{{ desc }}
{% endif %}
{% endif %}
{% if let Some(expires_at) = url.expires_at.as_deref() %}
{% if !expires_at.is_empty() %}
Expires: {{ expires_at[0..10] }} {{ expires_at[11..16] }}
{% if url.expired %}
Expired
{% endif %}
{% endif %}
{% endif %}
{% if let Some(max) = url.max_access_count %}
Clicks: {{ url.access_count }} / {{ max }}
{% if url.is_access_exhausted() %}
Limit Reached
{% endif %}
{% else %}
{% if url.access_count > 0 %}
Clicks: {{ url.access_count }}
{% endif %}
{% endif %}
|
{% let code = url.code.as_str() %}
{% include "components/qr_preview.html" %}
{{ url.status }} |
{% if url.tags.is_empty() %}
—
{% else %}
{% for t in url.tags %}
{{ t }}
{% endfor %}
{% endif %}
|
||