Skip to content

Commit d2860f4

Browse files
committed
fix(front): remove negation from feature check expressions
1 parent 2ea6243 commit d2860f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

front/lib/front_web/templates/account/show.html.eex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="mt4 pv3 bt b--lighter-gray">
1919
<div class="f4 b mb3">Repository access</div>
2020
<div class="dib ba b--lighter-gray br2 w-100">
21-
<%= if not FeatureProvider.feature_enabled?(:bitbucket) do %>
21+
<%= if FeatureProvider.feature_enabled?(:bitbucket) do %>
2222
<div class="pa2 bb b--lighter-gray">
2323
<% else %>
2424
<div class="pa2">
@@ -76,7 +76,7 @@
7676
<span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
7777
<% end %>
7878
</div>
79-
<%= if not FeatureProvider.feature_enabled?(:bitbucket) do %>
79+
<%= if FeatureProvider.feature_enabled?(:bitbucket) do %>
8080
<div class="pa2 bt b--lighter-gray">
8181
<span class="b">Bitbucket</span> ·
8282
<%= case {@user.bitbucket_scope, @user.bitbucket_login} do %>
@@ -98,7 +98,7 @@
9898
<span><a href="https://bitbucket.org/<%= @user.bitbucket_login %>" target="_blank">@<%= @user.bitbucket_login %></a></span>
9999
<% end %>
100100
</div>
101-
<%= if not FeatureProvider.feature_enabled?(:gitlab) do %>
101+
<%= if FeatureProvider.feature_enabled?(:gitlab) do %>
102102
<div class="pa2 bt b--lighter-gray">
103103
<span class="b">GitLab</span> ·
104104
<%= case {@user.gitlab_scope, @user.gitlab_login} do %>

front/lib/front_web/templates/account/welcome/okta.html.eex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="">
1313
<div class="dib ba b--lighter-gray br2 w-100">
14-
<%= if not FeatureProvider.feature_enabled?(:bitbucket) do %>
14+
<%= if FeatureProvider.feature_enabled?(:bitbucket) do %>
1515
<div class="pa2 bb b--lighter-gray">
1616
<% else %>
1717
<div class="pa2">
@@ -55,7 +55,7 @@
5555
<span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
5656
<% end %>
5757
</div>
58-
<%= if not FeatureProvider.feature_enabled?(:bitbucket) do %>
58+
<%= if FeatureProvider.feature_enabled?(:bitbucket) do %>
5959
<div class="pa2">
6060
<span class="b">Bitbucket</span> ·
6161
<%= case {@user.bitbucket_scope, @user.bitbucket_login} do %>
@@ -78,7 +78,7 @@
7878
<% end %>
7979
</div>
8080
<% end %>
81-
<%= if not FeatureProvider.feature_enabled?(:gitlab) do %>
81+
<%= if FeatureProvider.feature_enabled?(:gitlab) do %>
8282
<div class="pa2">
8383
<span class="b">GitLab</span> ·
8484
<%= case {@user.gitlab_scope, @user.gitlab_login} do %>

0 commit comments

Comments
 (0)