Skip to content

Commit

Permalink
Merge pull request #137 from UB-Mannheim/citation_download
Browse files Browse the repository at this point in the history
Citation download
  • Loading branch information
NateWr authored Oct 18, 2019
2 parents 9e95386 + 0bb30cb commit fa410fb
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bootstrap-themes/cerulean/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/cosmo/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/cyborg/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/darkly/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/flatly/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/journal/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/lumen/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/paper/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/readable/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/sandstone/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/simplex/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/slate/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/spacelab/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/superhero/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/united/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
2 changes: 1 addition & 1 deletion bootstrap-themes/yeti/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
4 changes: 2 additions & 2 deletions bootstrap/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"@label-info-bg": "@brand-info",
"@label-warning-bg": "@brand-warning",
"@label-danger-bg": "@brand-danger",
"@label-color": "#fff",
"@label-color": "@text-color",
"@label-link-hover-color": "#fff",
"@modal-inner-padding": "15px",
"@modal-title-padding": "15px",
Expand Down Expand Up @@ -432,4 +432,4 @@
"transition.js"
],
"customizerUrl": "http://getbootstrap.com/customize/?id=e84dfe1351a68cd9ec75d550266b96fa"
}
}
2 changes: 1 addition & 1 deletion bootstrap/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
@label-danger-bg: @brand-danger;

//** Default label text color
@label-color: #fff;
@label-color: @text-color;
//** Default text color of a linked label
@label-link-hover-color: #fff;

Expand Down
20 changes: 18 additions & 2 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
{translate key="submission.howToCite.citationFormats"}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<div class="dropdown-menu" role="menu">
<ul>
{foreach from=$citationStyles item="citationStyle"}
<li>
<a
Expand All @@ -192,7 +193,22 @@
</a>
</li>
{/foreach}
</ul>
</ul>
{if count($citationDownloads)}
<div class="label">
{translate key="submission.howToCite.downloadCitation"}
</div>
<ul class="citation_formats_styles">
{foreach from=$citationDownloads item="citationDownload"}
<li>
<a href="{url page="citationstylelanguage" op="download" path=$citationDownload.id params=$citationArgs}">
{$citationDownload.title|escape}
</a>
</li>
{/foreach}
</ul>
{/if}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit fa410fb

Please sign in to comment.