File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,7 @@ func RepoAssignment() macaron.Handler {
395
395
ctx .Data ["Owner" ] = ctx .Repo .Repository .Owner
396
396
ctx .Data ["IsRepositoryOwner" ] = ctx .Repo .IsOwner ()
397
397
ctx .Data ["IsRepositoryAdmin" ] = ctx .Repo .IsAdmin ()
398
+ ctx .Data ["RepoOwnerIsOrganization" ] = repo .Owner .IsOrganization ()
398
399
ctx .Data ["CanWriteCode" ] = ctx .Repo .CanWrite (models .UnitTypeCode )
399
400
ctx .Data ["CanWriteIssues" ] = ctx .Repo .CanWrite (models .UnitTypeIssues )
400
401
ctx .Data ["CanWritePulls" ] = ctx .Repo .CanWrite (models .UnitTypePullRequests )
Original file line number Diff line number Diff line change 52
52
</form>
53
53
</div>
54
54
55
+ {{if .RepoOwnerIsOrganization}}
55
56
<h4 class="ui top attached header">
56
57
Teams
57
58
</h4>
108
109
</div>
109
110
{{end}}
110
111
</div>
112
+ {{end}}
111
113
</div>
112
114
</div>
113
115
You can’t perform that action at this time.
0 commit comments