Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
humanities
gargantext
Commits
14af33e6
Commit
14af33e6
authored
Oct 25, 2016
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TAG for lang in menu
parent
8a231e13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
help.js
static/lib/gargantext/help.js
+3
-3
menu.html
templates/pages/menu.html
+1
-1
No files found.
static/lib/gargantext/help.js
View file @
14af33e6
...
@@ -4,6 +4,7 @@ help = {"#project":
...
@@ -4,6 +4,7 @@ help = {"#project":
"fr"
:{
"fr"
:{
"title"
:
"Ajouter un projet"
,
"title"
:
"Ajouter un projet"
,
"content"
:
"Cliquez sur le bouton et donnez un nom à votre projet"
,}
"content"
:
"Cliquez sur le bouton et donnez un nom à votre projet"
,}
,
"placement"
:
"bottom"
,
"placement"
:
"bottom"
,
"position"
:
"inside"
,
"position"
:
"inside"
,
},
},
...
@@ -128,10 +129,9 @@ help = {"#project":
...
@@ -128,10 +129,9 @@ help = {"#project":
}
}
$
(
".help"
).
each
(
function
(
i
,
el
)
{
$
(
".help"
).
each
(
function
(
i
,
el
)
{
lang
=
$
(
"a#lang"
).
data
(
"lang"
)
//console.log("This", el)
//console.log("This", el)
id
=
el
.
id
id
=
el
.
id
div_id
=
"#"
+
id
div_id
=
"#"
+
id
help_steps
=
Object
.
keys
(
help
)
help_steps
=
Object
.
keys
(
help
)
console
.
log
(
help_steps
)
console
.
log
(
help_steps
)
...
@@ -144,7 +144,7 @@ $( ".help" ).each(function(i, el) {
...
@@ -144,7 +144,7 @@ $( ".help" ).each(function(i, el) {
info
=
help
[
div_id
]
info
=
help
[
div_id
]
//console.log(info)
//console.log(info)
help_btn
=
'<span class="glyphicon glyphicon-question-sign" tab-index=0 data-toggle="popover" data-placement="'
+
info
[
"placement"
]
+
'" title="'
+
info
[
"title"
]
+
'" data-content="'
+
info
[
"content"
]
+
'"></span>'
help_btn
=
'<span class="glyphicon glyphicon-question-sign" tab-index=0 data-toggle="popover" data-placement="'
+
info
[
"placement"
]
+
'" title="'
+
info
[
lang
][
"title"
]
+
'" data-content="'
+
info
[
lang
]
[
"content"
]
+
'"></span>'
if
(
info
[
"position"
]
==
"inside"
){
if
(
info
[
"position"
]
==
"inside"
){
...
...
templates/pages/menu.html
View file @
14af33e6
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
</ul>
</ul>
</li>
</li>
<li
class=
"lang"
>
<li
class=
"lang"
>
<a
href=
"#"
role=
"button"
class=
"dropdown-toggle navbar-text"
>
<a
href=
"#"
id=
"lang"
data-lang=
"{{user_parameters.language}}"
role=
"button"
class=
"dropdown-toggle navbar-text"
>
{% if user_parameters.language == "fr" %}
{% if user_parameters.language == "fr" %}
<img
value=
"{{user_parameters.language}}"
src=
"{% static "
img
/
fr
.
png
"%}"
width=
"45%"
/>
<img
value=
"{{user_parameters.language}}"
src=
"{% static "
img
/
fr
.
png
"%}"
width=
"45%"
/>
{%else %}
{%else %}
...
...
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