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
2517c5a4
Commit
2517c5a4
authored
Feb 02, 2021
by
o@immerda.ch
Browse files
use the new url to get directly to the schleuder list
parent
3051a37a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/application_controller.rb
View file @
2517c5a4
...
...
@@ -125,9 +125,9 @@ class ApplicationController < ActionController::Base
localpart
=
name
.
split
(
"@"
,
2
)[
0
]
# TODO: move to api
{
mailman:
"https://lists.immerda.ch/mailman/admin/
:
localpart"
,
schleuder:
"https://schleuder.immerda.ch"
}[
which
.
to_sym
]
.
gsub
(
":
name
"
,
name
).
gsub
(
":
localpart
"
,
localpart
)
mailman:
"https://lists.immerda.ch/mailman/admin/
%{
localpart
}
"
,
schleuder:
"https://schleuder.immerda.ch
/lists/%{name}
"
}[
which
.
to_sym
]
%
{
name
:
name
,
localpart
:
localpart
}
end
helper_method
:canonical_resources_edit_link
...
...
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