Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
minerva
core
Commits
bf9d9634
Commit
bf9d9634
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
links to disease and organism
parent
53f47735
No related branches found
No related tags found
2 merge requests
!115
Resolve "admin panel should use API"
,
!114
Resolve "admin panel should use API"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+18
-8
18 additions, 8 deletions
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
with
18 additions
and
8 deletions
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
+
18
−
8
View file @
bf9d9634
...
...
@@ -4,6 +4,8 @@
var
AbstractAdminPanel
=
require
(
'
./AbstractAdminPanel
'
);
var
logger
=
require
(
'
../../logger
'
);
var
Functions
=
require
(
'
../../Functions
'
);
var
GuiConnector
=
require
(
'
../../GuiConnector
'
);
var
Promise
=
require
(
"
bluebird
"
);
...
...
@@ -43,6 +45,7 @@ MapsAdminPanel.prototype._createMenuRow = function() {
var
self
=
this
;
var
menuRow
=
Functions
.
createElement
({
type
:
"
div
"
,
className
:
"
menu-row
"
,
style
:
"
display:table-row; margin:10px
"
,
});
...
...
@@ -112,14 +115,8 @@ MapsAdminPanel.prototype.init = function() {
MapsAdminPanel
.
prototype
.
projectToTableRow
=
function
(
project
)
{
var
self
=
this
;
var
disease
=
"
N/A
"
;
if
(
project
.
getDisease
()
!=
undefined
&&
project
.
getDisease
()
!=
null
)
{
disease
=
self
.
getGuiUtils
().
createAnnotationLink
(
project
.
getDisease
(),
true
).
innerHTML
;
}
var
organism
=
"
N/A
"
;
if
(
project
.
getOrganism
()
!=
undefined
&&
project
.
getOrganism
()
!=
null
)
{
organism
=
self
.
getGuiUtils
().
createAnnotationLink
(
project
.
getOrganism
(),
true
).
innerHTML
;
}
var
disease
=
self
.
getHtmlStringLink
(
project
.
getDisease
());
var
organism
=
self
.
getHtmlStringLink
(
project
.
getOrganism
());
var
row
=
[
project
.
getProjectId
(),
//
project
.
getName
(),
//
...
...
@@ -132,6 +129,19 @@ MapsAdminPanel.prototype.projectToTableRow = function(project) {
return
row
;
}
MapsAdminPanel
.
prototype
.
getHtmlStringLink
=
function
(
annotation
)
{
var
self
=
this
;
if
(
annotation
!=
undefined
&&
annotation
!=
null
)
{
var
link
=
self
.
getGuiUtils
().
createAnnotationLink
(
annotation
,
true
);
var
tmp
=
document
.
createElement
(
"
div
"
);
tmp
.
appendChild
(
link
);
return
tmp
.
innerHTML
;
}
else
{
return
"
N/A
"
;
}
};
MapsAdminPanel
.
prototype
.
setProjects
=
function
(
projects
)
{
var
self
=
this
;
var
dataTable
=
$
(
$
(
"
[name='projectsTable']
"
,
self
.
getElement
())[
0
]).
DataTable
();
...
...
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