Make the repo breadcrumb bar clickable
This commit is contained in:
parent
0e2adf7a30
commit
fdb628a0b0
6 changed files with 72 additions and 7 deletions
11
static/directives/repo-breadcrumb.html
Normal file
11
static/directives/repo-breadcrumb.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<span class="repo-breadcrumb-element">
|
||||
<span ng-show="!image">
|
||||
<span class="crumb" ng-click="showNamespace()">{{repo.namespace}}</span>
|
||||
<span class="current">{{repo.name}}</span>
|
||||
</span>
|
||||
<span ng-show="image">
|
||||
<span class="crumb" ng-click="showNamespace()">{{repo.namespace}}</span>
|
||||
<span class="crumb"><a href="{{ '/repository/' + repo.namespace + '/' + repo.name }}">{{repo.name}}</a></span>
|
||||
<span class="current">{{image.id.substr(0, 12)}}</span>
|
||||
</span>
|
||||
</span>
|
Reference in a new issue