diff options
author | Alex Legler <alex@a3li.li> | 2016-12-05 17:29:21 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2016-12-05 17:29:21 +0100 |
commit | caaf77c52dc7969ccc3287416d38ea0c1c5b13d3 (patch) | |
tree | c7f04719dd50248b745f367aa35422cdbab2b49c | |
parent | Match actual infra prod system versions (diff) | |
download | frontend-caaf77c52dc7969ccc3287416d38ea0c1c5b13d3.tar.gz frontend-caaf77c52dc7969ccc3287416d38ea0c1c5b13d3.tar.bz2 frontend-caaf77c52dc7969ccc3287416d38ea0c1c5b13d3.zip |
Remove GMANE link as their web interface is no more
-rw-r--r-- | lib/helpers.rb | 7 | ||||
-rw-r--r-- | views/message.erb | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index 3ed4f51..8e58417 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -1,8 +1,7 @@ require 'rinku' require 'erb' -GMANE_FIND = 'http://news.gmane.org/find-root.php?message_id=' -MARC_FIND = 'https://marc.info/?i=' +MARC_FIND = 'https://marc.info/?i='.freeze helpers do def list_check @@ -75,10 +74,6 @@ helpers do Rinku.auto_link(str, :urls, 'rel="nofollow"') end - def msgid_to_gmane(msgid) - GMANE_FIND + ERB::Util.url_encode(msgid) - end - def msgid_to_marc(msgid) # We have to transform the msg-id first # CAK86ViRgefgrb0qUyjQdYa+6C5BTiNvn8UKZwQsMvcJmY-L0mg@mail.gmail.com diff --git a/views/message.erb b/views/message.erb index ee700fd..f26445d 100644 --- a/views/message.erb +++ b/views/message.erb @@ -82,7 +82,6 @@ <div class="ag-message-actions"> <a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-fw fa-ban"></span> Report Message</a> <div class="btn-group btn-group-xs"> - <a href="<%= msgid_to_gmane(message['_source']['raw_message_id']) %>" class="btn btn-default"><span class="fa fa-fw fa-share-square"></span>Find on GMANE</a> <a href="<%= msgid_to_marc(message['_source']['raw_message_id']) %>" class="btn btn-default"><span class="fa fa-fw fa-share-square"></span>Find on MARC</a> </div> -</div>
\ No newline at end of file +</div> |