Permalink
Browse files

Add button links to github and issue report

  • Loading branch information...
sabiram authored and comma committed Oct 6, 2018
1 parent 0b52a85 commit f0f8778b8e247f93db8dea920a8bc5dd1a14acdf
Showing with 117 additions and 23 deletions.
  1. +1 −0 code/controllers/configuration.dm
  2. +3 −0 config/example/config.txt
  3. +27 −3 interface/interface.dm
  4. +85 −19 interface/skin.dmf
  5. +1 −1 test/check-paths.sh
@@ -97,6 +97,7 @@ var/list/gamemode_cache = list()
var/wikiurl
var/forumurl
var/githuburl
var/issuereporturl

var/forbid_singulo_possession = 0

@@ -205,6 +205,9 @@ GUEST_BAN
## GitHub address
# GITHUBURL https://github.com/example-user/example-repository

## GitHub new issue address
# ISSUEREPORTURL https://github.com/example-user/example-repository/issues/new

## Ban appeals URL - usually for a forum or wherever people should go to contact your admins.
# BANAPPEALS http://example.com

@@ -6,19 +6,43 @@
if( config.wikiurl )
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.wikiurl)
send_link(src, config.wikiurl)
else
to_chat(src, "<span class='warning'>The wiki URL is not set in the server configuration.</span>")
return

/client/verb/github()
set name = "GitHub"
set desc = "Visit the GitHub repository."
set hidden = 1
if( config.githuburl )
if(alert("This will open GitHub in your browser. Are you sure?",,"Yes","No")=="No")
return
send_link(src, config.githuburl)
else
to_chat(src, "<span class='warning'>The github URL is not set in the server configuration.</span>")
return

/client/verb/bugreport()
set name = "Bug Report"
set desc = "Visit the GitHub repository to report an issue or bug."
set hidden = 1
if( config.issuereporturl )
if(alert("This will open GitHub in your browser. Are you sure?",,"Yes","No")=="No")
return
send_link(src, config.issuereporturl)
else
to_chat(src, "<span class='warning'>The issue report URL is not set in the server configuration.</span>")
return

/client/verb/forum()
set name = "Forum"
set desc = "Visit the forum."
set hidden = 1
if( config.forumurl )
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.forumurl)
send_link(src, config.forumurl)
else
to_chat(src, "<span class='warning'>The forum URL is not set in the server configuration.</span>")
return
@@ -28,7 +52,7 @@
set name = "Rules"
set desc = "Show Server Rules."
set hidden = 1
src << browse(file(RULES_FILE), "window=rules;size=480x320")
show_browser(src, file(RULES_FILE), "window=rules;size=480x320")
#undef RULES_FILE

#define LORE_FILE "config/lore.html"
Oops, something went wrong.

0 comments on commit f0f8778

Please sign in to comment.