Commit 2517c5a4 authored by o@immerda.ch's avatar o@immerda.ch
Browse files

use the new url to get directly to the schleuder list

parent 3051a37a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment