Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redeleitsystem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
redl
redeleitsystem
Commits
787c8ed0
Commit
787c8ed0
authored
9 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Enabled nextbutton for admin-topic-show
parent
535aa66e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/js/nextbutton.js
+2
-6
2 additions, 6 deletions
static/js/nextbutton.js
templates/admin_topic_show.html
+9
-1
9 additions, 1 deletion
templates/admin_topic_show.html
with
11 additions
and
7 deletions
static/js/nextbutton.js
+
2
−
6
View file @
787c8ed0
...
...
@@ -8,12 +8,8 @@ function hashkey(e) {
}
function
clickNextSpeaker
()
{
var
rows
=
document
.
getElementById
(
"
next-speaker-table
"
).
rows
;
if
(
rows
.
length
>
1
)
{
var
row
=
rows
[
1
];
var
a
=
row
.
children
[
2
].
childNodes
[
1
];
a
.
click
();
}
var
link
=
document
.
getElementById
(
"
next-statement-button
"
);
link
.
click
();
}
window
.
onkeypress
=
function
(
e
)
{
...
...
This diff is collapsed.
Click to expand it.
templates/admin_topic_show.html
+
9
−
1
View file @
787c8ed0
...
...
@@ -2,6 +2,14 @@
{% from "macros.html" import render_form %}
{% block admin_title %}Topic - {{ topic.name }}{% endblock %}
{% block additional_js %}
<script
src=
"{{ url_for("
static
",
filename=
"js/nextbutton.js"
)
}}"
async
></script>
{% endblock %}
{% block additional_sidelinks %}
<a
class=
"mdl-navigation__link"
href=
"javascript:void(0)"
onclick=
"setkeyhash()"
><i
class=
"mdl-color-text--blue-grey-400 material-icons"
>
phonelink_setup
</i>
Set Presenter key
</a>
{% endblock %}
{% block content %}
<div
class=
"mdl-cell mdl-cell--6-col mdl-cell--5-col-tablet mdl-cell--4-col-phone mdl-grid mdl-grid--no-spacing"
>
<table
class=
"mdl-data-table mdl-js-table mdl-shadow--2dp mdl-cell mdl-cell--12-col"
>
...
...
@@ -56,7 +64,7 @@
<ul
class=
"rede-list-no-bullet"
>
{% if topic.sorted_statements()|length() > 0 %}
<li>
<a
href=
"{{ url_for("
.
statement_done
",
id=
topic.sorted_statements()[0].id,
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
redo
</i>
Next
</a>
<a
id=
"next-statement-button"
href=
"{{ url_for("
.
statement_done
",
id=
topic.sorted_statements()[0].id,
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
redo
</i>
Next
</a>
</li>
{% endif %}
<li><a
href=
"{{ url_for("
.
statement_undo
",
topic_id=
topic.id)
}}"
class=
"rede-href"
><i
class=
"material-icons"
role=
"presentation"
>
undo
</i>
Previous
</a></li>
...
...
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