Added follow button to rubrics page.
This commit is contained in:
parent
3153fd6b39
commit
d1987ebc0e
2 changed files with 22 additions and 3 deletions
|
@ -3267,7 +3267,18 @@ label.switch >.collapseTextControl >img {
|
||||||
padding-top: 9px;
|
padding-top: 9px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
#rubricFollow {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#rubricFollow a {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding-left: 10px;
|
||||||
|
vertical-align: middle;
|
||||||
|
background-image: url(../images/arrow-right.svg);
|
||||||
|
background-position: left center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
color: #8B4513;
|
||||||
|
}
|
||||||
/* -------------------------------------------------> */
|
/* -------------------------------------------------> */
|
||||||
/* FONTS --------------------------------> */
|
/* FONTS --------------------------------> */
|
||||||
/* -------------------------------------------------> */
|
/* -------------------------------------------------> */
|
||||||
|
|
|
@ -5,7 +5,11 @@ ${scripts.add('<script async type="text/javascript" src="${urls.base}/themes/iph
|
||||||
<#if !rubric.parentUri??>
|
<#if !rubric.parentUri??>
|
||||||
<#assign childs = rubric.childs?number>
|
<#assign childs = rubric.childs?number>
|
||||||
<button type="button" style="border:none;padding: 15px;text-align:left; width:100%;" class="collapsible">
|
<button type="button" style="border:none;padding: 15px;text-align:left; width:100%;" class="collapsible">
|
||||||
<@openButton childs=childs/><a style="padding-left:15px;" href="individual?uri=${rubric.uri?url}">${rubric.name}</a></button>
|
<@openButton childs=childs/><a style="padding-left:15px;">${rubric.name}</a>
|
||||||
|
<div id="rubricFollow">
|
||||||
|
<a href="individual?uri=${rubric.uri?url}">перейти в рубрику</a>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
<div class="rubricContents" style="display:none;">
|
<div class="rubricContents" style="display:none;">
|
||||||
<#if (childs > 0) >
|
<#if (childs > 0) >
|
||||||
<@nestedRubrics allrubrics=rubrics parentUri=rubric.uri deep=10 level=1 />
|
<@nestedRubrics allrubrics=rubrics parentUri=rubric.uri deep=10 level=1 />
|
||||||
|
@ -30,7 +34,11 @@ ${scripts.add('<script async type="text/javascript" src="${urls.base}/themes/iph
|
||||||
<#if innerRubric.parentUri?? && innerRubric.parentUri == parentUri>
|
<#if innerRubric.parentUri?? && innerRubric.parentUri == parentUri>
|
||||||
<#assign childs = innerRubric.childs?number>
|
<#assign childs = innerRubric.childs?number>
|
||||||
<#assign count = count + 1 >
|
<#assign count = count + 1 >
|
||||||
<button type="button" style="border:none;padding: 15px 0px 15px ${15+15*level}px;width: 100%; text-align:left;" class="collapsible"><@openButton childs=childs /><a style="padding-left:15px;" href="individual?uri=${innerRubric.uri?url}">${innerRubric.name}</a></button>
|
<button type="button" style="border:none;padding: 15px 0px 15px ${15+15*level}px;width: 100%; text-align:left;" class="collapsible"><@openButton childs=childs /><a style="padding-left:15px;">${innerRubric.name}</a>
|
||||||
|
<div id="rubricFollow">
|
||||||
|
<a href="individual?uri=${innerRubric.uri?url}">перейти в рубрику</a>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
<div class="rubricContents" style="display:none;">
|
<div class="rubricContents" style="display:none;">
|
||||||
<#if (deep > 1) && (childs > 0)>
|
<#if (deep > 1) && (childs > 0)>
|
||||||
<@nestedRubrics allrubrics=rubrics parentUri=innerRubric.uri deep=deep-1 level=level+1 />
|
<@nestedRubrics allrubrics=rubrics parentUri=innerRubric.uri deep=deep-1 level=level+1 />
|
||||||
|
|
Loading…
Add table
Reference in a new issue