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
503b436e
Commit
503b436e
authored
May 30, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotations: disable unchecking MAPLIST and adding ngram + fix layout
parent
463c27b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
+24
-17
app.css
annotations/static/annotations/app.css
+4
-0
main.html
annotations/templates/annotations/main.html
+20
-17
No files found.
annotations/static/annotations/app.css
View file @
503b436e
...
...
@@ -163,6 +163,10 @@
float
:
right
;
}
.spacer
{
margin-top
:
40px
;
}
.favactive
{
/* yellow */
color
:
#FFF50D
;
...
...
annotations/templates/annotations/main.html
View file @
503b436e
...
...
@@ -25,12 +25,24 @@
<div
class=
"container-fluid"
>
<div
class=
"row-fluid main-panel"
ng-controller=
"NGramHighlightController"
>
<div
class=
"col-md-4 col-xs-4 tabbable words-panel"
>
<ul
class=
"nav nav-pills nav-justified"
>
<li
ng-repeat=
"(listId, listName) in activeLists"
ng-class=
"{active: $first == true}"
>
<a
href=
"#tab-{[{listId}]}"
data-toggle=
"tab"
>
{[{listName}]}
</a>
</li>
</ul>
<div
class=
"tab-content"
>
<div
class=
"list-selector"
>
<h5>
Select highlighted list(s)
<select
class=
"selectpicker"
multiple
ng-change=
"activeListsChange()"
ng-model=
"lists"
ng-controller=
"ActiveListsController"
>
<option
ng-repeat=
"item in allListsSelect"
id=
"list---{[{item.id}]}"
ng-disabled=
"{[{ item.label == 'MAPLIST' }]}"
>
{[{item.label}]}
</option>
<!-- to disallow unchecking MapList add this into <option> element: ng-disabled="{[{ item.label == 'MAPLIST' }]}" -->
</select>
</h5>
<div
class=
"row spacer"
></div>
<ul
class=
"nav nav-pills nav-justified"
>
<li
ng-repeat=
"(listId, listName) in activeLists"
ng-class=
"{active: $first == true}"
>
<a
href=
"#tab-{[{listId}]}"
data-toggle=
"tab"
>
{[{listName}]}
</a>
</li>
</ul>
</div>
<div
class=
"tab-content"
>
<div
ng-controller=
"NgramListPaginationController"
ng-repeat=
"(listId, listName) in activeLists"
ng-class=
"{active: $first == true}"
class=
"tab-pane"
id=
"tab-{[{listId}]}"
>
<div
ng-if=
"ngramsInPanel[listId].length == 0"
class=
"alert alert-info"
role=
"alert"
>
Input any keyword you want to link to this article and the list named '{[{listName}]}'
...
...
@@ -48,23 +60,14 @@
<li
ng-class=
"{'disabled': currentListPage >= totalListPages(listId) - 1}"
><a
ng-click=
"nextListPage()"
class=
"glyphicon glyphicon-forward"
></a></li>
</ul>
</nav>
<!--
<div class="form-group" ng-controller="NgramInputController">
<input autosave="search" maxlength="240" placeholder="Add any text" type="text" class="form-control" id="{[{listId}]}-input" ng-keypress="onListSubmit($event, listId)">
<button type="submit" class="form-control btn btn-default btn-primary" ng-click="onListSubmit($event, listId)">Add to {[{listName}]}</button>
</div>
-->
</div>
</div>
<div
class=
"list-selector"
>
<h5>
Select lists
</h5>
<select
class=
"selectpicker"
multiple
ng-change=
"activeListsChange()"
ng-model=
"lists"
ng-controller=
"ActiveListsController"
>
<option
ng-repeat=
"item in allListsSelect"
id=
"list---{[{item.id}]}"
>
{[{item.label}]}
</option>
<!-- to disallow unchecking MapList add this into <option> element: ng-disabled="{[{ item.label == 'MapList' }]}" -->
</select>
</div>
</div>
<div
class=
"col-md-8 col-xs-8 text-panel"
ng-controller=
"DocController"
id=
"document"
>
<div
class=
"row-fluid clearfix"
>
...
...
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