11class PageController < ApplicationController
2- # GET /page/publications
3- def publications
4- end
5-
62 # GET /page/about
73 def about
84 end
95
10- # GET /page/status
11- # GET /page/status.json
12- def status
13- respond_to do |format |
14- format . html do
15- redirect_to 'https://stats.uptimerobot.com/OcQhKQJ19N'
16- end
17- format . json
18- end
19- end
20-
21- # GET /page/seqcode
22- def seqcode
23- render = SeqCodeDown . new ( with_toc_data : true )
24- @markdown = Redcarpet ::Markdown . new ( render , autolink : true , tables : true )
25- seqcode_path = Rails . root . join ( 'seqcode' )
26- @seqcode = File . read ( seqcode_path . join ( 'README.md' ) )
27- @tag = `cd "#{ seqcode_path } " && git describe --tags --abbrev=0` . chomp
28- @last_modified =
29- Date . parse ( `cd "#{ seqcode_path } " && git log -1 --format=%cd` . chomp )
30- end
31-
32- # GET /page/videos
33- def videos
6+ # GET /api
7+ def api
348 end
359
36- # GET /page/initiative
37- def initiative
38- redirect_to 'https://www.isme-microbes.org/seqcode-initiative'
10+ # GET /page/committee
11+ def committee
3912 end
4013
4114 # GET /page/connect
@@ -45,24 +18,8 @@ def connect
4518 'zt-19rqshbvn-9Rti7Tn2_CskNCkW1WIaOw'
4619 end
4720
48- # GET /page/join
49- def join
50- # Generated September 15 2022 (Google form)
51- redirect_to 'https://forms.gle/ZJQVu3XqZwBp4jb4A'
52- end
53-
54- # GET /page/committee
55- def committee
56- end
57-
58- # GET /page/prize
59- def prize
60- end
61-
62- # GET /help
63- def help_index
64- @topics = help_topics
65- @crumbs = [ 'Help' ]
21+ # GET /page/publications
22+ def publications
6623 end
6724
6825 # GET /help/topic
@@ -90,8 +47,26 @@ def help(topic = nil)
9047 render ( 'help' , layout : !params [ :content ] . present? )
9148 end
9249
93- # GET /api
94- def api
50+ # GET /help
51+ def help_index
52+ @topics = help_topics
53+ @crumbs = [ 'Help' ]
54+ end
55+
56+ # GET /page/initiative
57+ def initiative
58+ redirect_to 'https://www.isme-microbes.org/seqcode-initiative'
59+ end
60+
61+ # GET /page/issues
62+ def issues
63+ redirect_to 'https://github.com/seq-code/registry/issues'
64+ end
65+
66+ # GET /page/join
67+ def join
68+ # Generated September 15 2022 (Google form)
69+ redirect_to 'https://forms.gle/ZJQVu3XqZwBp4jb4A'
9570 end
9671
9772 # GET /page/linkout.xml
@@ -102,11 +77,26 @@ def linkout
10277 end
10378 end
10479
80+ # GET /page/prize
81+ def prize
82+ end
83+
10584 # GET /page/sandbox
10685 def sandbox
10786 redirect_to ( etymology_sandbox_names_path )
10887 end
10988
89+ # GET /page/seqcode
90+ def seqcode
91+ render = SeqCodeDown . new ( with_toc_data : true )
92+ @markdown = Redcarpet ::Markdown . new ( render , autolink : true , tables : true )
93+ seqcode_path = Rails . root . join ( 'seqcode' )
94+ @seqcode = File . read ( seqcode_path . join ( 'README.md' ) )
95+ @tag = `cd "#{ seqcode_path } " && git describe --tags --abbrev=0` . chomp
96+ @last_modified =
97+ Date . parse ( `cd "#{ seqcode_path } " && git log -1 --format=%cd` . chomp )
98+ end
99+
110100 # GET /page/stats
111101 def stats
112102 @stats = { }
@@ -119,6 +109,21 @@ def stats
119109 end
120110 end
121111
112+ # GET /page/status
113+ # GET /page/status.json
114+ def status
115+ respond_to do |format |
116+ format . html do
117+ redirect_to 'https://stats.uptimerobot.com/OcQhKQJ19N'
118+ end
119+ format . json
120+ end
121+ end
122+
123+ # GET /page/videos
124+ def videos
125+ end
126+
122127 private
123128
124129 def help_topics
0 commit comments