File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 101
101
</td>
102
102
<td class="center aligned">
103
103
<div class="ui radio checkbox">
104
- <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="0"{{if or ($unit.Type.UnitGlobalDisabled) (eq ($.Team.UnitAccessMode $unit.Type) 0)}} checked{{end}}>
104
+ <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="0"{{if or ($unit.Type.UnitGlobalDisabled) (eq ($.Team.UnitAccessMode $.Context $ unit.Type) 0)}} checked{{end}}>
105
105
</div>
106
106
</td>
107
107
<td class="center aligned">
108
108
<div class="ui radio checkbox">
109
- <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
109
+ <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $.Context $ unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
110
110
</div>
111
111
</td>
112
112
<td class="center aligned">
113
113
<div class="ui radio checkbox">
114
- <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="2"{{if (eq ($.Team.UnitAccessMode $unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
114
+ <input type="radio" class="hidden" name="unit_{{$unit.Type.Value}}" value="2"{{if (eq ($.Team.UnitAccessMode $.Context $ unit.Type) 2)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
115
115
</div>
116
116
</td>
117
117
</tr>
123
123
{{if lt $unit.MaxPerm 2}}
124
124
<div {{if $unit.Type.UnitGlobalDisabled}}class="field tooltip" data-content="{{$.i18n.Tr "repo.unit_disabled"}}"{{else}}class="field"{{end}}>
125
125
<div class="ui checkbox">
126
- <input type="checkbox" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
126
+ <input type="checkbox" class="hidden" name="unit_{{$unit.Type.Value}}" value="1"{{if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $.Context $ unit.Type) 1)}} checked{{end}} {{if $unit.Type.UnitGlobalDisabled}}disabled{{end}}>
127
127
<label>{{$.i18n.Tr $unit.NameKey}}{{if $unit.Type.UnitGlobalDisabled}} {{$.i18n.Tr "org.team_unit_disabled"}}{{end}}</label>
128
128
<span class="help">{{$.i18n.Tr $unit.DescKey}}</span>
129
129
</div>
Original file line number Diff line number Diff line change 61
61
{{if and (lt $unit.MaxPerm 2) (not $unit.Type.UnitGlobalDisabled)}}
62
62
<tr>
63
63
<td><strong>{{$.i18n.Tr $unit.NameKey}}</strong></td>
64
- <td>{{if eq ($.Team.UnitAccessMode $unit.Type) 0 -}}
64
+ <td>{{if eq ($.Team.UnitAccessMode $.Context $ unit.Type) 0 -}}
65
65
{{$.i18n.Tr "org.teams.none_access"}}
66
- {{- else if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $unit.Type) 1) -}}
66
+ {{- else if or (eq $.Team.ID 0) (eq ($.Team.UnitAccessMode $.Context $ unit.Type) 1) -}}
67
67
{{$.i18n.Tr "org.teams.read_access"}}
68
- {{- else if eq ($.Team.UnitAccessMode $unit.Type) 2 -}}
68
+ {{- else if eq ($.Team.UnitAccessMode $.Context $ unit.Type) 2 -}}
69
69
{{$.i18n.Tr "org.teams.write_access"}}
70
70
{{- end}}</td>
71
71
</tr>
You can’t perform that action at this time.
0 commit comments