Skip to content

Commit d18ee51

Browse files
authored
Merge pull request #9451 from DS-INRA/develop
Replaced hard coded strings in File Access button by new Bundle properties
2 parents d9ce2dc + 2e870e8 commit d18ee51

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/propertyFiles/Bundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,9 @@ file.editFile=Edit
16961696

16971697
file.actionsBlock=File Actions
16981698
file.accessBtn=Access File
1699+
file.accessBtn.header.access=File Access
16991700
file.accessBtn.header.download=Download Options
1701+
file.accessBtn.header.metadata=Download Metadata
17001702
file.optionsBtn=File Options
17011703
file.optionsBtn.header.edit=Edit Options
17021704
file.optionsBtn.header.configure=Configure Options

src/main/webapp/file-download-button-fragment.xhtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
xmlns:iqbs="http://xmlns.jcp.org/jsf/composite/iqbs">
1313

1414
<!-- Access Status -->
15-
<li class="dropdown-header">File Access <span class="glyphicon glyphicon-file"/></li>
15+
<li class="dropdown-header">#{bundle['file.accessBtn.header.access']} <span class="glyphicon glyphicon-file"/></li>
1616
<li><span class="dropdown-item-text">
1717
<span class="#{!fileMetadata.restricted ?
1818
'glyphicon glyphicon-globe text-success' : (!fileDownloadHelper.canDownloadFile(fileMetadata) ? 'glyphicon glyphicon-lock text-danger' : 'icon-unlock text-success')}"/>
@@ -211,7 +211,7 @@
211211
<!-- END: CAN DOWNLOAD ACCESS Options -->
212212

213213
<!-- Download Metadata -->
214-
<li class="dropdown-header">Download Metadata <span class="glyphicon glyphicon-download-alt"/></li>
214+
<li class="dropdown-header">#{bundle['file.accessBtn.header.metadata']} <span class="glyphicon glyphicon-download-alt"/></li>
215215

216216
<ui:fragment rendered="#{fileMetadata.dataFile.tabularData and fileDownloadHelper.canDownloadFile(fileMetadata)}">
217217
<li>

0 commit comments

Comments
 (0)