Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
ac5ea2e4
Commit
ac5ea2e4
authored
Oct 04, 2017
by
Matija Obreza
Browse files
Link to Crops index page from homepage
parent
256c1ab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/jsp/index.jsp
View file @
ac5ea2e4
...
...
@@ -22,7 +22,7 @@
</div>
</c:if>
</div>
</div>
</div>
</div>
<div
class=
"row no-space map"
>
...
...
@@ -108,7 +108,7 @@
</div>
</div>
<!-- Block Help -->
<div
class=
"col-md-4 col-sm-12 col-xs-12 no-space"
>
<div
class=
"see-also-block"
>
...
...
@@ -171,8 +171,8 @@
<cms:blurb
blurb=
"
${
sideBlurp
}
"
/>
</div>
</c:if>
<div
class=
"content-block"
id=
"crop-list"
>
<h2
class=
"short text-right pull-left"
>
<spring:message
code=
"crop.croplist"
/>
...
...
@@ -195,21 +195,21 @@
<div
class=
"row"
>
<div
class=
"col-md-12 col-sm-12 col-xs-12"
>
<li
class=
"all-crops"
>
<a
class=
"show"
href=
"
<c:url
value=
"/
explore
/"
/>
"
>
<a
class=
"show"
href=
"
<c:url
value=
"/
c
/"
/>
"
>
<spring:message
code=
"crop.all-crops"
/>
</a>
</li>
<c:forEach
items=
"
${
cropList
}
"
var=
"crop"
varStatus=
"status"
>
<li>
<a
class=
"show"
href=
"
<c:url
value=
"/c/${crop.shortName}"
/>
"
>
<c:out
value=
"
${
crop
.
getName
(
pageContext
.
response
.
locale
)
}
"
/>
</a>
</li>
<c:if
test=
"
${
status
.
count
%
Math
.
round
(
cropCount
/
3
)
==
0
}
"
>
</div>
<div
class=
"col-md-12 col-sm-12 col-xs-12"
>
</c:if>
</c:forEach>
<c:forEach
items=
"
${
cropList
}
"
var=
"crop"
varStatus=
"status"
>
<li>
<a
class=
"show"
href=
"
<c:url
value=
"/c/${crop.shortName}"
/>
"
>
<c:out
value=
"
${
crop
.
getName
(
pageContext
.
response
.
locale
)
}
"
/>
</a>
</li>
<c:if
test=
"
${
status
.
count
%
Math
.
round
(
cropCount
/
3
)
==
0
}
"
>
</div>
<div
class=
"col-md-12 col-sm-12 col-xs-12"
>
</c:if>
</c:forEach>
</div>
</div>
</ul>
...
...
@@ -218,8 +218,8 @@
</c:if>
</div>
</div>
<content
tag=
"javascript"
>
<!-- Index Javascripts -->
<script
type=
"text/javascript"
>
...
...
@@ -233,8 +233,8 @@
$
(
'
#home-li
'
).
find
(
"
a
"
).
addClass
(
'
active active-group
'
);
$
(
'
#home-li
'
).
addClass
(
'
active
'
);
$
(
"
.autocomplete-genus
"
).
each
(
function
()
{
var
t
=
$
(
this
);
t
.
autocomplete
({
delay
:
200
,
minLength
:
3
,
source
:
t
.
attr
(
'
x-source
'
),
var
t
=
$
(
this
);
t
.
autocomplete
({
delay
:
200
,
minLength
:
3
,
source
:
t
.
attr
(
'
x-source
'
),
messages
:
{
noResults
:
''
,
results
:
function
()
{}
},
select
:
function
(
event
,
ui
)
{
document
.
location
.
pathname
=
'
/acn/t/
'
+
ui
.
item
.
value
;
}
});
});
...
...
@@ -243,4 +243,4 @@
</content>
</body>
</html>
\ No newline at end of file
</html>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment