File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,8 @@ func formattedDuration(duration time.Duration, str *periodMap) string {
327327
328328func makeTemplateFuncMap (params * chaincfg.Params ) template.FuncMap {
329329 netTheme := "theme-" + strings .ToLower (netName (params ))
330+ netName := netName (params )
331+ notMainnet := netName != "Mainnet"
330332
331333 return template.FuncMap {
332334 "blockVoteBitsStr" : func (voteBits uint16 ) string {
@@ -632,6 +634,9 @@ func makeTemplateFuncMap(params *chaincfg.Params) template.FuncMap {
632634 },
633635 "floor" : math .Floor ,
634636 "headData" : func (data * CommonPageData , title string ) headData {
637+ if notMainnet {
638+ title = fmt .Sprintf ("%s - %s" , title , netName )
639+ }
635640 return headData {
636641 Data : data ,
637642 Title : title ,
Original file line number Diff line number Diff line change 188188 </span>
189189 </div>
190190 <script
191- src= " /dist/js/4.9eec6eb13cc00a3d .bundle.js"
191+ src= " /dist/js/4.06b06a4759f2b4ad .bundle.js"
192192 data-turbolinks-eval= " false"
193193 data-turbolinks-suppress-warning
194194 ></script>
195195 <script
196- src= " /dist/js/app.a882ac4b6d92599f .bundle.js"
196+ src= " /dist/js/app.6060a2b12c046ffe .bundle.js"
197197 data-turbolinks-eval= " false"
198198 data-turbolinks-suppress-warning
199199 ></script>
You can’t perform that action at this time.
0 commit comments