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
e5a4d658
Commit
e5a4d658
authored
May 05, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CSS + ERGO + TEXT] Corpus comparison tool.
parent
7aeedd6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
extras_explorerjs.js
static/js/graphExplorer/extras_explorerjs.js
+8
-5
explorer.html
templates/graphExplorer/explorer.html
+18
-4
No files found.
static/js/graphExplorer/extras_explorerjs.js
View file @
e5a4d658
...
...
@@ -838,7 +838,9 @@ function GetUserPortfolio() {
html_
+=
' <div class="panel panel-default">'
+
"
\n
"
html_
+=
' <div class="panel-heading">'
+
"
\n
"
html_
+=
' <h4 class="panel-title">'
+
"
\n
"
html_
+=
' <a data-toggle="collapse" data-parent="#accordion" href="#collapse_'
+
project_id
+
'">'
+
project_name
+
'</a>'
+
"
\n
"
html_
+=
' <a data-toggle="collapse" data-parent="#accordion" href="#collapse_'
+
project_id
+
'">'
html_
+=
' <span class="glyphicon glyphicon-book" aria-hidden="true"></span> '
+
project_name
html_
+=
' </a>'
+
"
\n
"
html_
+=
' </h4>'
+
"
\n
"
html_
+=
' </div>'
+
"
\n
"
html_
+=
' <div id="collapse_'
+
project_id
+
'" class="panel-collapse collapse">'
+
"
\n
"
...
...
@@ -855,13 +857,14 @@ function GetUserPortfolio() {
portfolio
[
corpus_id
]
=
corpus_name
html_
+=
' <
li
>'
+
"
\n
"
html_
+=
' <
div class="row"
>'
+
"
\n
"
html_
+=
' <div class="radio">'
+
"
\n
"
html_
+=
' <label><input type="radio" id="'
+
project_id
+
"_"
+
corpus_id
+
'" name="optradio">'
+
"
\n
"
html_
+=
' <a target="_blank" href="/projects/'
+
project_id
+
'/corpora/'
+
corpus_id
+
'/">'
+
corpus_name
+
'</a>'
+
"
\n
"
html_
+=
' <a target="_blank" href="/projects/'
+
project_id
+
'/corpora/'
+
corpus_id
+
'/">'
html_
+=
' <span class="glyphicon glyphicon-file" aria-hidden="true"></span> '
+
corpus_name
+
'</a>'
+
"
\n
"
html_
+=
' </label>'
+
"
\n
"
html_
+=
' </div>'
+
"
\n
"
html_
+=
' </
li
>'
+
"
\n
"
html_
+=
' </
div
>'
+
"
\n
"
}
}
}
...
...
@@ -884,7 +887,7 @@ function GetUserPortfolio() {
var
sel_p_id
=
selected
[
0
],
sel_c_id
=
selected
[
1
]
var
html_selection
=
""
html_selection
+=
'<center>You are comparing
:
</center>'
+
"
\n
"
html_selection
+=
'<center>You are comparing
<br><span class="glyphicon glyphicon-hand-down" aria-hidden="true"></span>
</center>'
+
"
\n
"
html_selection
+=
'<center>'
html_selection
+=
'('
+
portfolio
[
sel_p_id
]
+
') '
html_selection
+=
'<span class="glyphicon glyphicon-resize-horizontal" aria-hidden="true"></span>'
...
...
templates/graphExplorer/explorer.html
View file @
e5a4d658
...
...
@@ -433,13 +433,19 @@
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h3
class=
"modal-title"
>
Corpus Comparison Tool
</h3>
<h3
class=
"modal-title"
>
<span
class=
"glyphicon glyphicon-transfer"
aria-hidden=
"true"
></span>
Corpus Comparison Tool
</h3>
</div>
<div
class=
"modal-body form-horizontal"
>
<h4>
Choose one corpus among your projects:
</h4>
<h4>
<span
class=
"glyphicon glyphicon-hand-right"
aria-hidden=
"true"
></span>
Choose one corpus among your projects:
</h4>
<div
style=
"color:red;"
id=
"selected_corpus"
></div>
<div
id=
"user_portfolio"
>
...
...
@@ -447,8 +453,16 @@
<div
class=
"modal-footer"
>
<button
id=
"closecorpuses"
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
id=
"add_corpus_tab"
type=
"button"
class=
"btn btn-primary"
disabled
onclick=
'printCorpuses();'
>
Add Tab
</button>
<button
id=
"closecorpuses"
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
<span
class=
"glyphicon glyphicon-remove"
aria-hidden=
"true"
></span>
Close
</button>
<button
id=
"add_corpus_tab"
type=
"button"
class=
"btn btn-primary"
disabled
onclick=
'printCorpuses();'
>
<span
class=
"glyphicon glyphicon-ok"
aria-hidden=
"true"
></span>
Compare
</button>
</div>
</div>
...
...
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