@@ -15,6 +15,7 @@ class MoreTableViewController: UITableViewController {
1515 fileprivate let cellIdentifier = " BasicCell "
1616 fileprivate let moreDetailSegue = " moreDetailSegue "
1717 fileprivate var didShowDetail = false
18+ fileprivate let conference = Conference . current
1819
1920 fileprivate enum MoreSection : Int {
2021 case eventDetails, acknowledgements, feedback, slack
@@ -172,7 +173,7 @@ private extension MoreTableViewController {
172173
173174 func showCodeOfConduct( ) {
174175 let webViewController = WebDisplayViewController ( )
175- webViewController. url = URL ( string: " https://github.com/NatashaTheRobot/trySwiftCodeOfConduct/blob/master/README.md " ) !
176+ webViewController. url = URL ( string: conference . codeOfConductURL ) !
176177 webViewController. displayTitle = " Code of Conduct " . localized ( )
177178 performSegue ( withIdentifier: moreDetailSegue, sender: webViewController)
178179 }
@@ -196,12 +197,12 @@ private extension MoreTableViewController {
196197 }
197198
198199 func showAppFeedback( ) {
199- let url = URL ( string: " https://github.com/tryswift/trySwiftAppFinal/issues " ) !
200+ let url = URL ( string: conference . githubIssuesURL ) !
200201 openSafariViewController ( withURL: url)
201202 }
202203
203204 func showConferenceFeedback( ) {
204- let configuration = MailConfiguration ( recipients: [ " india@tryswift.co " ] , subject: " Conference feedback via try! Conference app " )
205+ let configuration = MailConfiguration ( recipients: [ conference . email ] , subject: " Conference feedback via try! Conference app " )
205206 sendMail ( withConfiguration: configuration)
206207 }
207208
@@ -211,7 +212,7 @@ private extension MoreTableViewController {
211212 if application. canOpenURL ( appURL) {
212213 application. open ( appURL)
213214 } else {
214- let url = URL ( string: " https://tryswiftindia.slack.com/ " ) !
215+ let url = URL ( string: conference . slackURL ) !
215216 openSafariViewController ( withURL: url)
216217 }
217218 }
0 commit comments