Skip to content

Commit

Permalink
API Token: add to header #3086
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Apr 27, 2016
1 parent 7db7117 commit 3b5503e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ header.user.selectTab.dataRelated=My Data
header.user.selectTab.notifications=Notifications
header.user.selectTab.accountInfo=Account Information
header.user.selectTab.groupsAndRoles=Groups + Roles
header.user.selectTab.apiToken=API Token

# dataverse_template.xhtml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ public String init() {
activeIndex = 2;
// activeIndex = 3;
break;
case "apiTokenTab":
activeIndex = 3;
break;
default:
activeIndex = 0;
break;
Expand Down
6 changes: 6 additions & 0 deletions src/main/webapp/dataverse_header.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@
<h:outputText value="#{bundle['header.accountInfo']}" />
</h:outputLink>
</li>
<li>
<h:outputLink value="/dataverseuser.xhtml">
<f:param name="selectTab" value="apiTokenTab" />
<h:outputText value="#{bundle['header.user.selectTab.apiToken']}" />
</h:outputLink>
</li>
<li class="divider"></li>
<li class="logout">
<h:form styleClass="navbar-form navbar-left" pt:role="logout">
Expand Down

0 comments on commit 3b5503e

Please sign in to comment.