Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
fad5f1fc
Commit
fad5f1fc
authored
Aug 14, 2018
by
o@immerda.ch
Browse files
for now disable the option to enable encryption
parent
0443b057
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/application_controller.rb
View file @
fad5f1fc
...
...
@@ -36,7 +36,7 @@ class ApplicationController < ActionController::Base
helper_method
:admin?
def
feature_toggle?
(
feature
)
false
(
Config
[
'features'
]
||
[]).
include?
(
feature
)
end
helper_method
:feature_toggle?
...
...
app/views/welcome/index.html.erb
View file @
fad5f1fc
...
...
@@ -17,9 +17,11 @@
</li>
<%
end
%>
<%
else
%>
<%
if
feature_toggle?
(
'enable_mail_crypt'
)
%>
<li>
<%=
link_to
(
t
:mail_crypt_settings
)
,
mail_crypt_path
%>
(beta)
<br
/>
<%=
t
(
:enable_mail_crypt_short_help
)
%>
</li>
<%
end
%>
<%
end
%>
<li
style=
'padding-top:10px'
>
<%=
link_to
(
t
:delete_account
)
,
delete_account_path
%>
</li>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment