Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
46
Issues
46
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
f24071a6
Commit
f24071a6
authored
Mar 23, 2016
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further work on /1/ GUI
parent
0af852b0
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5836 additions
and
32 deletions
+5836
-32
Gruntfile.js
Gruntfile.js
+6
-2
src/main/sourceapp/0/styles/genesys.scss
src/main/sourceapp/0/styles/genesys.scss
+6
-2
src/main/sourceapp/1/js/crophub.js
src/main/sourceapp/1/js/crophub.js
+706
-0
src/main/sourceapp/1/js/world.js
src/main/sourceapp/1/js/world.js
+4921
-0
src/main/sourceapp/1/styles/genesys.scss
src/main/sourceapp/1/styles/genesys.scss
+139
-5
src/main/webapp/WEB-INF/decorator/1/footer.jsp
src/main/webapp/WEB-INF/decorator/1/footer.jsp
+32
-1
src/main/webapp/WEB-INF/jsp/country/index.jsp
src/main/webapp/WEB-INF/jsp/country/index.jsp
+13
-11
src/main/webapp/WEB-INF/jsp/wiews/index.jsp
src/main/webapp/WEB-INF/jsp/wiews/index.jsp
+13
-11
No files found.
Gruntfile.js
View file @
f24071a6
...
...
@@ -238,8 +238,12 @@ module.exports = function(grunt) {
dest
:
'
<%= app.dist1 %>/js/libraries.js
'
,
},
app1
:
{
src
:
[
'
<%= app.source1 %>/js/prologue.js
'
,
'
<%= app.source1 %>/js/epilogue.js
'
],
src
:
[
'
<%= app.source1 %>/js/prologue.js
'
,
'
<%= app.source1 %>/js/
crophub.js
'
,
'
<%= app.source1 %>/js/
epilogue.js
'
],
dest
:
'
<%= app.dist1 %>/js/genesys.js
'
},
world1
:
{
src
:
[
'
bower_components/highmaps-beta/highmaps.src.js
'
,
'
bower_components/highcharts/modules/data.src.js
'
,
'
<%= app.source1 %>/js/world.js
'
],
dest
:
'
<%= app.dist1 %>/js/genesyshighcharts.js
'
}
},
...
...
@@ -367,7 +371,7 @@ module.exports = function(grunt) {
grunt
.
loadNpmTasks
(
'
grunt-newer
'
);
grunt
.
registerTask
(
'
build0
'
,
[
'
newer:jshint:dist
'
,
'
compass:dist
'
,
'
copy:dist
'
,
'
concat:dist
'
,
'
concat:world
'
,
'
concat:app
'
,
'
autoprefixer:dist
'
,
'
uglify:dist
'
,
'
cssmin:dist
'
]);
grunt
.
registerTask
(
'
build1
'
,
[
'
newer:jshint:dist1
'
,
'
compass:dist1
'
,
'
copy:dist1
'
,
'
concat:dist1
'
,
'
concat:app1
'
,
'
autoprefixer:dist1
'
,
'
uglify:dist1
'
,
'
cssmin:dist1
'
]);
grunt
.
registerTask
(
'
build1
'
,
[
'
newer:jshint:dist1
'
,
'
compass:dist1
'
,
'
copy:dist1
'
,
'
concat:dist1
'
,
'
concat:
world1
'
,
'
concat:
app1
'
,
'
autoprefixer:dist1
'
,
'
uglify:dist1
'
,
'
cssmin:dist1
'
]);
// grunt.registerTask('js', [ 'jshint:all', 'copy:dist', 'concat', 'autoprefixer', 'uglify:dist' ]);
// grunt.registerTask('css', [ 'compass:dist', 'copy:dist', 'concat', 'autoprefixer', 'cssmin' ]);
grunt
.
registerTask
(
'
default
'
,
[
'
build0
'
,
'
build1
'
]);
...
...
src/main/sourceapp/0/styles/genesys.scss
View file @
f24071a6
...
...
@@ -1370,6 +1370,10 @@ html[dir="rtl"] #country-in-genesys table .alignleft {
ul
.funny-list
{
margin
:
0
;
padding
:
0
;
div
.row
>
&
{
margin
:
0
10px
;
}
}
.main-col
ul
.funny-list
li
{
...
...
@@ -1387,11 +1391,11 @@ ul.funny-list {
display
:
inline-block
;
}
.main-col
table
.accessions
tr
.odd
td
,
.main-col
table
tr
:nth-of-type
(
odd
)
td
,
#middle-col
table
tr
:nth-of-type
(
odd
)
td
,
.main-col
ul
.funny-list
>
li
.odd
{
.main-col
table
.accessions
tr
.odd
td
,
.main-col
table
tr
:nth-of-type
(
odd
)
td
,
#middle-col
table
tr
:nth-of-type
(
odd
)
td
,
.main-col
ul
.funny-list
>
li
:nth-of-type
(
odd
)
{
background-color
:
#f8f7f5
;
}
.main-col
table
.accessions
tr
.even
td
,
.main-col
table
tr
:nth-of-type
(
even
)
td
,
#middle-col
table
tr
:nth-of-type
(
even
)
td
,
.main-col
ul
.funny-list
>
li
.even
{
.main-col
table
.accessions
tr
.even
td
,
.main-col
table
tr
:nth-of-type
(
even
)
td
,
#middle-col
table
tr
:nth-of-type
(
even
)
td
,
.main-col
ul
.funny-list
>
li
:nth-of-type
(
even
)
{
background-color
:
#f3f2ee
;
}
...
...
src/main/sourceapp/1/js/crophub.js
0 → 100644
View file @
f24071a6
This diff is collapsed.
Click to expand it.
src/main/sourceapp/1/js/world.js
0 → 100644
View file @
f24071a6
This diff is collapsed.
Click to expand it.
src/main/sourceapp/1/styles/genesys.scss
View file @
f24071a6
...
...
@@ -54,7 +54,40 @@ footer {
bottom
:
0px
;
width
:
100%
;
height
:
$footer-height
;
background-color
:
#F5F5F5
;
>
div
{
background-color
:
#707070
;
font-size
:
75%
;
}
.nav
{
margin
:
10px
0px
;
li
{
display
:
inline-block
;
a
{
color
:
#d0d0d0
;
font-size
:
12px
;
padding
:
0
;
margin
:
0
.5em
;
}
}
}
#copyright
{
padding
:
0
0
10px
0
;
p
{
color
:
#d0d0d0
;
font-size
:
12px
;
padding
:
11px
0
0
10px
;
html
[
dir
=
"rtl"
]
&
{
padding
:
11px
10px
0
0
;
}
}
}
}
.container
{
...
...
@@ -91,3 +124,104 @@ h1.page-title {
border-top
:
2px
solid
White
;
border-bottom
:
2px
solid
white
;
}
#
content-header
h1
, #
content-body-content
.
informative-h1
, #
content-body-content
>
h1
:
FIRST-CHILD
{
background
:
none
repeat
scroll
0
0
#88ba42
;
color
:
#fff
;
font-size
:
24px
;
font-weight
:
bold
;
}
#content-body-content
{
.informative-h1
{
font-size
:
small
;
font-weight
:
normal
;
h1
{
margin-top
:
0
;
margin-bottom
:
0
;
font-size
:
24px
;
font-weight
:
bold
;
padding
:
10px
0
;
}
}
/** Absolutely first H1 in the content section */
&
>
h1
:FIRST-CHILD
{
margin
:
0
-15px
;
padding
:
10px
15px
;
small
{
font-size
:
18px
;
color
:
rgba
(
255
,
255
,
255
,
0
.7
);
}
}
}
/** Header-related stuff: pagination and such */
.main-col-header
{
background
:
#d4d1c6
;
margin
:
0
-15px
;
padding
:
10px
15px
;
}
/** Alphabetic list */
.letter-pointer
{
padding
:
0
0
.7em
;
font-weight
:
bold
;
}
ul
>
li
.hoofdleter
{
font-size
:
150%
;
font-weight
:
bold
;
list-style-type
:
none
;
margin
:
1em
0
0
.5em
;
padding
:
0
;
small
{
font-size
:
10px
;
html
[
dir
=
"rtl"
]
&
{
margin-right
:
3em
;
}
html
:not
([
dir
=
"rtl"
])
&
{
margin-left
:
3em
;
}
}
}
/** Funny List */
ul
.funny-list
{
margin
:
0
;
padding
:
0
;
>
li
{
list-style-type
:
none
;
margin
:
3px
0
;
padding
:
10px
15px
;
&
:nth-of-type
(
odd
)
{
background-color
:
#f8f7f5
;
}
&
:nth-of-type
(
even
)
{
background-color
:
#f3f2ee
;
}
&
.not-current
*
{
font-style
:
italic
;
opacity
:
0
.5
;
}
}
}
/** Unit of Measure */
.uom
{
html
[
dir
=
"rtl"
]
&
{
margin-right
:
1em
;
}
html
:not
([
dir
=
"rtl"
])
&
{
margin-left
:
1em
;
}
}
src/main/webapp/WEB-INF/decorator/1/footer.jsp
View file @
f24071a6
...
...
@@ -4,7 +4,38 @@
<footer
class=
"footer"
>
<div
class=
"container-fluid"
>
<p
class=
"text-muted"
>
Place sticky footer content here.
</p>
<!-- <p class="text-muted">Place sticky footer content here.</p> -->
<div
id=
"nav-foot"
class=
"clearfix"
>
<ul
class=
"nav pull-left"
>
<li><a
href=
"
<c:url
value=
"/1/content/about/about"
/>
"
><spring:message
code=
"menu.about"
/></a></li>
<li><a
href=
"
<c:url
value=
"/1/content/about/contact"
/>
"
><spring:message
code=
"menu.contact"
/></a></li>
<li><a
href=
"
<c:url
value=
"/1/content/legal/disclaimer"
/>
"
><spring:message
code=
"menu.disclaimer"
/></a></li>
<li><a
target=
"_blank"
href=
"https://bitbucket.org/genesys2/genesys2-server/issues/new"
><spring:message
code=
"menu.report-an-issue"
/></a></li>
<li
class=
"notimportant"
><a
target=
"_blank"
href=
"https://bitbucket.org/genesys2/genesys2-server.git"
><spring:message
code=
"menu.scm"
/></a></li>
<li
class=
"notimportant"
><a
target=
"_blank"
href=
"https://www.transifex.com/crop-trust/genesys/"
><spring:message
code=
"menu.translate"
/></a></li>
</ul>
<ul
class=
"nav pull-right"
>
<li><a
href=
"
<c:url
value=
"/1/content/legal/terms"
/>
"
><spring:message
code=
"menu.terms"
/></a></li>
<li><a
href=
"
<c:url
value=
"/1/content/legal/copying"
/>
"
><spring:message
code=
"menu.copying"
/></a></li>
<li><a
href=
"
<c:url
value=
"/1/content/legal/privacy"
/>
"
><spring:message
code=
"menu.privacy"
/></a></li>
</ul>
</div>
<div
class=
"pull-left"
id=
"copyright"
>
<a
href=
"
<c:url
value=
"/1/welcome"
/>
"
class=
"pull-left"
><img
style=
"height: 30px"
src=
"
<c:url
value=
"/html/0/images/logo.svg"
/>
"
alt=
"Genesys - Gateway to Genetic Resources"
/></a>
<p
class=
"pull-left"
><spring:message
code=
"footer.copyright-statement"
/></p>
</div>
<div
class=
"pull-right"
>
<div
class=
"pull-left text-right"
style=
"color: #808080; font-family: monospace; font-size: 8px;"
>
<spring:message
code=
"page.rendertime"
arguments=
"
${
springExecuteTime
}
"
/>
<br
/>
<a
target=
"_blank"
href=
"https://bitbucket.org/genesys2/genesys2-server/commits/${buildRevision}"
>
${buildName}
</a>
</div>
</div>
</div>
</footer>
...
...
src/main/webapp/WEB-INF/jsp/country/index.jsp
View file @
f24071a6
...
...
@@ -29,6 +29,7 @@
<c:set
value=
""
var=
"hoofdleter"
/>
<div
class=
"row"
>
<ul
class=
"funny-list"
>
<c:forEach
items=
"
${
countries
}
"
var=
"country"
varStatus=
"status"
>
<c:if
test=
"
${
hoofdleter
ne
country
.
getName
(
pageContext
.
response
.
locale
).
substring
(
0
,
1
)
}
"
>
...
...
@@ -37,9 +38,10 @@
<small><a
href=
"#letter-top"
><spring:message
code=
"jump-to-top"
/></a></small>
</li>
</c:if>
<li
class=
"${status.count % 2 == 0 ? 'even' : 'odd'}"
><a
class=
"show ${not country.current ? 'disabled' : ''}"
href=
"
<c:url
value=
"/geo/${country.code3}"
/>
"
><c:out
value=
"
${
country
.
getName
(
pageContext
.
response
.
locale
)
}
"
/></a></li>
<li
><a
class=
"show ${not country.current ? 'disabled' : ''}"
href=
"
<c:url
value=
"/geo/${country.code3}"
/>
"
><c:out
value=
"
${
country
.
getName
(
pageContext
.
response
.
locale
)
}
"
/></a></li>
</c:forEach>
</ul>
</div>
<c:remove
var=
"hoofdleter"
/>
</body>
...
...
src/main/webapp/WEB-INF/jsp/wiews/index.jsp
View file @
f24071a6
...
...
@@ -26,9 +26,10 @@
</div>
</div>
<ul
class=
"funny-list"
>
<div
class=
"row"
>
<ul
class=
"funny-list"
>
<c:forEach
items=
"
${
pagedData
.
content
}
"
var=
"faoInstitute"
varStatus=
"status"
>
<li
class=
"clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}
${faoInstitute.current ? '' : 'not-current'}"
><a
<li
class=
"clearfix
${faoInstitute.current ? '' : 'not-current'}"
><a
class=
"show pull-left"
href=
"
<c:url
value=
"/wiews/${faoInstitute.code}"
/>
"
><b><c:out
value=
"
${
faoInstitute
.
code
}
"
/></b>
<c:out
value=
"
${
faoInstitute
.
fullName
}
"
/></a>
...
...
@@ -36,7 +37,8 @@
arguments=
"
${
faoInstitute
.
accessionCount
}
"
/></div>
</li>
</c:forEach>
</ul>
</ul>
</div>
</body>
</html>
\ No newline at end of file
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