|
27 | 27 | <%= case {@user.github_scope, @user.github_login} do %>
|
28 | 28 | <% {:NONE, nil} -> %>
|
29 | 29 | <span class="red">Not Connected</span>
|
30 |
| - <%= if Front.saas?() do %> |
| 30 | + <%= if FeatureProvider.feature_enabled?(:user_repos_access) do %> |
31 | 31 | <div>
|
32 | 32 | <%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
|
33 | 33 | <%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
|
|
41 | 41 | <span class="red">Not Connected</span>
|
42 | 42 | ·
|
43 | 43 | <span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
|
44 |
| - <%= if Front.saas?() do %> |
| 44 | + <%= if FeatureProvider.feature_enabled?(:user_repos_access) do %> |
45 | 45 | <div>
|
46 | 46 | <%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
|
47 | 47 | <%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
|
|
53 | 53 | <span class="gray">email only</span>
|
54 | 54 | ·
|
55 | 55 | <span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
|
56 |
| - <%= if Front.saas?() do %> |
| 56 | + <%= if FeatureProvider.feature_enabled?(:user_repos_access) do %> |
57 | 57 | <div>
|
58 | 58 | <%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
|
59 | 59 | <%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
|
|
65 | 65 | <span class="gray">public repositories</span>
|
66 | 66 | ·
|
67 | 67 | <span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
|
68 |
| - <%= if Front.saas?() do %> |
| 68 | + <%= if FeatureProvider.feature_enabled?(:user_repos_access) do %> |
69 | 69 | <div>
|
70 | 70 | <%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
|
71 | 71 | </div>
|
|
76 | 76 | <span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
|
77 | 77 | <% end %>
|
78 | 78 | </div>
|
79 |
| - <%= if not Application.get_env(:front, :hide_bitbucket_me_page) do %> |
| 79 | + <%= if not FeatureProvider.feature_enabled?(:bitbucket) do %> |
80 | 80 | <div class="pa2 bt b--lighter-gray">
|
81 | 81 | <span class="b">Bitbucket</span> ·
|
82 | 82 | <%= case {@user.bitbucket_scope, @user.bitbucket_login} do %>
|
|
98 | 98 | <span><a href="https://bitbucket.org/<%= @user.bitbucket_login %>" target="_blank">@<%= @user.bitbucket_login %></a></span>
|
99 | 99 | <% end %>
|
100 | 100 | </div>
|
101 |
| - <%= if not Application.get_env(:front, :hide_gitlab_me_page) do %> |
| 101 | + <%= if not FeatureProvider.feature_enabled?(:gitlab) do %> |
102 | 102 | <div class="pa2 bt b--lighter-gray">
|
103 | 103 | <span class="b">GitLab</span> ·
|
104 | 104 | <%= case {@user.gitlab_scope, @user.gitlab_login} do %>
|
|
0 commit comments