Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
6c402101
Commit
6c402101
authored
Jun 08, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
973bc1de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
script.js
esi/static/js/script.js
+8
-1
list_news.html
esi/templates/list_news.html
+2
-1
No files found.
esi/static/js/script.js
View file @
6c402101
...
...
@@ -163,7 +163,14 @@ $(document).ready(function() {
// });
});
//$('.text-white').on('click', function(e) {
// var getHref = $(this).attr('href');
// var url = window.location.href;
// window.location.href = url + getHref;
// console.log(window.location.search)
// e.preventDefault();
//
//})
// Index Page
...
...
esi/templates/list_news.html
View file @
6c402101
...
...
@@ -46,11 +46,12 @@
{% paginate news %}
{{ request.get_full_path }}
{{ request.GET.itervalues }}
<form
class=
"form"
>
<table
class=
"table table-hover"
>
<thead
class=
"thead-inverse"
>
<tr>
<th><a
class=
"text-white"
href=
"
?
order_by=title{% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&reverse=1{% endif %}"
>
<th><a
class=
"text-white"
href=
"order_by=title{% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&reverse=1{% endif %}"
>
Title {% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}
↑
{% elif request.GET.order_by == 'title' and request.GET.reverse == '1' %}
↓
{% endif %}
</a></th>
<th><a
class=
"text-white"
href=
"?order_by=media_id{% if request.GET.order_by == 'media_id' and request.GET.reverse != '1' %}&reverse=1{% endif %}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment