Add create repo link to the user and org view pages
This commit is contained in:
parent
60036927c9
commit
c059856597
2 changed files with 12 additions and 0 deletions
|
@ -8,6 +8,12 @@
|
|||
<span class="avatar" size="32" data="organization.avatar"></span>
|
||||
<span class="organization-name">{{ organization.name }}</span>
|
||||
</span>
|
||||
<span class="cor-title-action" ng-if="isMember">
|
||||
<a href="/new/?namespace={{ organization.name }}">
|
||||
<i class="fa fa-plus" data-title="Create new repository"></i>
|
||||
Create New Repository
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="co-main-content-panel" ng-if="user.anonymous || !isMember">
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
<span class="avatar" size="32" data="viewuser.avatar"></span>
|
||||
<span class="user-name">{{ viewuser.username }}</span>
|
||||
</span>
|
||||
<span class="cor-title-action" ng-if="viewuser.is_me">
|
||||
<a href="/new/?namespace={{ viewuser.username }}">
|
||||
<i class="fa fa-plus" data-title="Create new repository"></i>
|
||||
Create New Repository
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="co-main-content-panel user-repo-list" ng-if="!viewuser.is_me">
|
||||
|
|
Reference in a new issue