Se me olvido cambiar el nombre de id a el correspondiente

This commit is contained in:
Daniel Cortes
2019-03-12 17:16:09 -03:00
parent 3b5008f9ed
commit 7b7fd0301d
5 changed files with 9 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
<a href="{{ url_for('about') }}" class="nav-link">/about</a>
{% 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>
{% endif %}
</div>

View File

@@ -6,7 +6,7 @@
<h4>Categories</h4>
<div class="grid">
{% 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 %}
</div>
{% endblock %}

View File

@@ -6,7 +6,7 @@
<h4>{{ category.name }}</h4>
<div class="grid">
{% 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 %}
</div>
{% endblock %}

View File

@@ -3,10 +3,11 @@
{% block title %}{% endblock %}
{% block content %}
<h4>Files</h4>
<div class="grid">
{% for file in files %}
<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>
{% endfor %}
</div>

View File

@@ -3,7 +3,7 @@
{% block content %}
{% 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">
</form>
{% endif %}
@@ -21,7 +21,7 @@
{% endif %}
{% 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">
<label for="new_name">~/rename</label>
<div class="nine columns">
@@ -33,7 +33,7 @@
</div>
</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">
<label for="new_category">~/category</label>
<div class="nine columns">
@@ -49,7 +49,7 @@
</div>
</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">
<label for="new_type">~/type</label>
<div class="nine columns">