@@ -167,11 +167,13 @@ func renderInProgress(w http.ResponseWriter, r *http.Request, badge []byte, vali
167
167
168
168
// Parse results into html template and serve it
169
169
head := fmt .Sprintf ("%s validation for %s/%s" , validator , user , repo )
170
+ srvcfg := config .Read ()
170
171
info := struct {
171
172
Badge template.HTML
172
173
Header string
173
174
Content string
174
- }{template .HTML (badge ), head , string (progressmsg )}
175
+ GinURL string
176
+ }{template .HTML (badge ), head , string (progressmsg ), srvcfg .GINAddresses .WebURL }
175
177
176
178
err = tmpl .ExecuteTemplate (w , "layout" , info )
177
179
if err != nil {
@@ -208,11 +210,13 @@ func renderBIDSResults(w http.ResponseWriter, r *http.Request, badge []byte, con
208
210
209
211
// Parse results into html template and serve it
210
212
head := fmt .Sprintf ("BIDS validation for %s/%s" , user , repo )
213
+ srvcfg := config .Read ()
211
214
info := struct {
212
215
Badge template.HTML
213
216
Header string
214
217
* BidsResultStruct
215
- }{template .HTML (badge ), head , & resBIDS }
218
+ GinURL string
219
+ }{template .HTML (badge ), head , & resBIDS , srvcfg .GINAddresses .WebURL }
216
220
217
221
err = tmpl .ExecuteTemplate (w , "layout" , info )
218
222
if err != nil {
@@ -241,11 +245,13 @@ func renderNIXResults(w http.ResponseWriter, r *http.Request, badge []byte, cont
241
245
242
246
// Parse results into html template and serve it
243
247
head := fmt .Sprintf ("NIX validation for %s/%s" , user , repo )
248
+ srvcfg := config .Read ()
244
249
info := struct {
245
250
Badge template.HTML
246
251
Header string
247
252
Content string
248
- }{template .HTML (badge ), head , string (content )}
253
+ GinURL string
254
+ }{template .HTML (badge ), head , string (content ), srvcfg .GINAddresses .WebURL }
249
255
250
256
err = tmpl .ExecuteTemplate (w , "layout" , info )
251
257
if err != nil {
@@ -274,11 +280,13 @@ func renderODMLResults(w http.ResponseWriter, r *http.Request, badge []byte, con
274
280
275
281
// Parse results into html template and serve it
276
282
head := fmt .Sprintf ("odML validation for %s/%s" , user , repo )
283
+ srvcfg := config .Read ()
277
284
info := struct {
278
285
Badge template.HTML
279
286
Header string
280
287
Content string
281
- }{template .HTML (badge ), head , string (content )}
288
+ GinURL string
289
+ }{template .HTML (badge ), head , string (content ), srvcfg .GINAddresses .WebURL }
282
290
283
291
err = tmpl .ExecuteTemplate (w , "layout" , info )
284
292
if err != nil {
0 commit comments