Se me olvido cambiar el nombre de id a el correspondiente
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<a href="{{ url_for('about') }}" class="nav-link">/about</a>
|
<a href="{{ url_for('about') }}" class="nav-link">/about</a>
|
||||||
|
|
||||||
{% if g.user %}
|
{% if g.user %}
|
||||||
<a href="{{ url_for('files.upload_file') }}" class="nav-link">/upload</a>
|
<a href="{{ url_for('admin.index') }}" class="nav-link">/admin</a>
|
||||||
<a href="{{ url_for('auth.logout') }}" class="nav-link">/logout</a>
|
<a href="{{ url_for('auth.logout') }}" class="nav-link">/logout</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<h4>Categories</h4>
|
<h4>Categories</h4>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<a href="{{ url_for('categories.view', id=category.id) }}">{{ category.name }}</a>
|
<a href="{{ url_for('categories.view', category_id=category.id) }}">{{ category.name }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<h4>{{ category.name }}</h4>
|
<h4>{{ category.name }}</h4>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<a href="{{ url_for('files.preview_file', id=file.id) }}">{{ file.filename }}</a>
|
<a href="{{ url_for('files.preview_file', file_id=file.id) }}">{{ file.filename }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,10 +3,11 @@
|
|||||||
{% block title %}{% endblock %}
|
{% block title %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h4>Files</h4>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
{% for file in files %}
|
{% for file in files %}
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ url_for('files.preview_file', id=file.id) }}">{{ file.filename}}</a>
|
<a href="{{ url_for('files.preview_file', file_id=file.id) }}">{{ file.filename}}</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if g.user %}
|
{% if g.user %}
|
||||||
<form method="post" action={{ url_for('files.delete_file', id=file.id) }}>
|
<form method="post" action={{ url_for('files.delete_file', file_id=file.id) }}>
|
||||||
<input type="submit" class="button-primary u-pull-right" value="delete">
|
<input type="submit" class="button-primary u-pull-right" value="delete">
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if g.user %}
|
{% if g.user %}
|
||||||
<form action="{{ url_for('files.rename_file', id=file.id) }}" method="post">
|
<form action="{{ url_for('files.rename_file', file_id=file.id) }}" method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label for="new_name">~/rename</label>
|
<label for="new_name">~/rename</label>
|
||||||
<div class="nine columns">
|
<div class="nine columns">
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="{{ url_for('files.recategorize', id=file.id) }}" method="post">
|
<form action="{{ url_for('files.recategorize', file_id=file.id) }}" method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label for="new_category">~/category</label>
|
<label for="new_category">~/category</label>
|
||||||
<div class="nine columns">
|
<div class="nine columns">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="{{ url_for('files.retype', id=file.id) }}" method="post">
|
<form action="{{ url_for('files.retype', file_id=file.id) }}" method="post">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label for="new_type">~/type</label>
|
<label for="new_type">~/type</label>
|
||||||
<div class="nine columns">
|
<div class="nine columns">
|
||||||
|
|||||||
Reference in New Issue
Block a user