Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eScriptorium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scripta
eScriptorium
Commits
36b6a192
Commit
36b6a192
authored
4 years ago
by
Robin Tissot
Browse files
Options
Downloads
Patches
Plain Diff
Adds a link on the documents list row and change the edit button to go to the last edited element.
parent
6343dba1
No related branches found
No related tags found
1 merge request
!69
Feature/goto page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/escriptorium/templates/core/document_list.html
+10
-7
10 additions, 7 deletions
app/escriptorium/templates/core/document_list.html
with
10 additions
and
7 deletions
app/escriptorium/templates/core/document_list.html
+
10
−
7
View file @
36b6a192
...
...
@@ -13,11 +13,11 @@
<div
class=
"col-md-12 col-md-offset-4"
>
<a
href=
"{% url 'document-create' %}"
class=
"btn btn-success float-sm-right"
>
{% trans 'Create new' %}
</a>
<h2>
{% trans "My Documents" %}
</h2>
<table
class=
"table table-hover"
>
<table
id=
"document-list"
class=
"table table-hover"
>
<tbody>
{% for document in object_list %}
<tr>
<tr
onclick=
"document.location='{% url 'document-images' pk=document.pk %}'"
role=
"button"
>
<td>
{% with part=document.parts.first %}
{% if part %}
...
...
@@ -47,16 +47,19 @@
</td>
{% endcomment %}
<td
class=
"text-right"
>
{#
<a
href=
"{% url 'document-detail' pk=document.pk %}"
class=
"btn btn-info disabled"
title=
"{% trans 'View' %}"
><i
class=
"fas fa-eye"
></i></a>
#}
<a
href=
"{% url 'document-update' pk=document.pk %}"
class=
"btn btn-info"
title=
"{% trans 'Edit' %}"
><i
class=
"fas fa-edit"
></i></a>
{#
<a
href=
"{% url 'document-detail' pk=document.pk %}"
class=
"btn btn-info disabled"
title=
"{% trans 'View' %}"
><i
class=
"fas fa-eye"
></i></a>
#}
{# Note that doing one query per row is a lot faster than a subquery for some reason #}
<a
href=
"{% url 'document-part-edit' pk=document.pk part_pk=document.parts.last.pk %}"
class=
"btn btn-info"
title=
"{% trans 'Edit last updated Element' %}"
>
<i
class=
"fas fa-edit"
></i>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% include 'includes/pagination.html' %}
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment