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
08999931
Commit
08999931
authored
May 27, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navbar: restore working links to graph (wasnt working from pages other than titles)
parent
356f3dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
menu.html
templates/pages/menu.html
+8
-16
No files found.
templates/pages/menu.html
View file @
08999931
...
@@ -111,26 +111,14 @@
...
@@ -111,26 +111,14 @@
</a>
</a>
<i
class=
"caret"
></i>
<i
class=
"caret"
></i>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
{% if view == "titles" %}
<li>
<li>
<a
tabindex=
"-1"
<a
tabindex=
"-1"
data-url=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=conditional&bridgeness=5"
onclick=
'gotoexplorer(this)'
>
With conditional distance
</a>
data-url=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=conditional&bridgeness=5"
onclick=
'gotoexplorer(this)'
>
With conditional distance
</a>
</li>
</li>
<li>
<li>
<a
tabindex=
"-1"
<a
tabindex=
"-1"
data-url=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=distributional&bridgeness=5"
onclick=
'gotoexplorer(this)'
>
With distributional distance
</a>
data-url=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=distributional&bridgeness=5"
onclick=
'gotoexplorer(this)'
>
With distributional distance
</a>
</li>
</li>
{% else %}
<li>
<a
tabindex=
"-1"
href=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=conditional&bridgeness=5"
>
With conditional distance
</a>
</li>
<li>
<a
tabindex=
"-1"
href=
"/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=distributional&bridgeness=5"
>
With distributional distance
</a>
</li>
{% endif %}
</ul>
</ul>
</li>
</li>
...
@@ -192,7 +180,7 @@
...
@@ -192,7 +180,7 @@
</h3>
</h3>
<h3>
<h3>
<span
class=
"glyphicon glyphicon-user"
aria-hidden=
"true"
></span>
<span
class=
"glyphicon glyphicon-user"
aria-hidden=
"true"
></span>
Author(s): {{ user.username | truncatechars:15}}
Author(s): {{ user.username | truncatechars:15}}
</h3>
</h3>
</div>
</div>
...
@@ -268,16 +256,20 @@
...
@@ -268,16 +256,20 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
// constrains the graph request with startdate & enddate if present
function
gotoexplorer
(
elem
)
{
function
gotoexplorer
(
elem
)
{
var
url_
=
$
(
elem
).
data
(
"url"
)
var
url_
=
$
(
elem
).
data
(
"url"
)
if
(
TheBuffer
==
false
)
if
(
TheBuffer
==
false
)
{
return
window
.
open
(
url_
,
'_blank'
);
return
window
.
open
(
url_
,
'_blank'
);
}
var
current_timerange
=
TheBuffer
var
current_timerange
=
TheBuffer
var
time_limits
=
[
new
Date
(
oldest
[
0
],
oldest
[
1
]
-
1
,
oldest
[
2
]),
new
Date
(
latest
[
0
],
latest
[
1
]
-
1
,
latest
[
2
]
)
];
var
time_limits
=
[
new
Date
(
oldest
[
0
],
oldest
[
1
]
-
1
,
oldest
[
2
]),
new
Date
(
latest
[
0
],
latest
[
1
]
-
1
,
latest
[
2
]
)
];
time_limits
[
0
]
=
new
Date
(
time_limits
[
0
].
setDate
(
time_limits
[
0
].
getDate
()
-
1
)
);
time_limits
[
0
]
=
new
Date
(
time_limits
[
0
].
setDate
(
time_limits
[
0
].
getDate
()
-
1
)
);
time_limits
[
1
]
=
new
Date
(
time_limits
[
1
].
setDate
(
time_limits
[
1
].
getDate
()
+
1
)
);
time_limits
[
1
]
=
new
Date
(
time_limits
[
1
].
setDate
(
time_limits
[
1
].
getDate
()
+
1
)
);
if
(
(
+
current_timerange
[
0
]
===+
time_limits
[
0
]
)
&&
(
+
current_timerange
[
1
]
===+
time_limits
[
1
]
)
)
{
if
(
(
+
current_timerange
[
0
]
===+
time_limits
[
0
]
)
&&
(
+
current_timerange
[
1
]
===+
time_limits
[
1
]
)
)
{
url_
=
url_
// rien
url_
=
url_
// rien
}
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