Skip to content
Browse files

Update about/settings links to point to Github

  • Loading branch information...
1 parent 0d903e2 commit 78c01cd8c21cbc1d20ab8c6d39e011c8629d315c @cdzombak committed Mar 11, 2013
Showing with 22 additions and 12 deletions.
  1. +22 −12 buyvmmanager/BVMAboutSettingsViewController.m
View
34 buyvmmanager/BVMAboutSettingsViewController.m
@@ -5,14 +5,15 @@
typedef NS_ENUM(NSUInteger, BVMAboutSettingsTableViewSections) {
BVMAboutSettingsTableViewSectionUsefulLinks = 0,
+ BVMAboutSettingsTableViewSectionSupport,
BVMAboutSettingsTableViewSectionSettings,
- BVMAboutSettingsTableViewSectionContactSupport,
BVMAboutSettingsTableViewNumSections
};
-typedef NS_ENUM(NSUInteger, BVMAboutSettingsTableContactSupportRows) {
- BVMAboutSettingsTableContactSupportRowEmailAppAuthor = 0,
- BVMAboutSettingsTableContactSupportNumRows
+typedef NS_ENUM(NSUInteger, BVMAboutSettingsTableSupportRows) {
+ BVMAboutSettingsTableSupportRowReportIssue = 0,
+ BVMAboutSettingsTableSupportRowGithubProject,
+ BVMAboutSettingsTableSupportNumRows
};
typedef NS_ENUM(NSUInteger, BVMAboutSettingsTableUsefulLinksRows) {
@@ -32,12 +33,13 @@ typedef NS_ENUM(NSUInteger, BVMAboutSettingsTableSettingsRows) {
__attribute__((constructor)) static void __BVMAboutSettingsViewControllerTableConstantsInit(void)
{
@autoreleasepool {
- BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionContactSupport][BVMAboutSettingsTableContactSupportRowEmailAppAuthor] = NSLocalizedString(@"Email App Author", nil);
+ BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionSupport][BVMAboutSettingsTableSupportRowReportIssue] = NSLocalizedString(@"Report Issue", nil);
+ BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionSupport][BVMAboutSettingsTableSupportRowGithubProject] = NSLocalizedString(@"Github Project", nil);
BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionUsefulLinks][BVMAboutSettingsTableUsefulLinksRowStallion] = NSLocalizedString(@"BuyVM Manager (Stallion)", nil);
BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionUsefulLinks][BVMAboutSettingsTableUsefulLinksRowClientArea] = NSLocalizedString(@"BuyVM Billing/Support", nil);
BVMAboutSettingsTableRowTitles[BVMAboutSettingsTableViewSectionSettings][BVMAboutSettingsTableSettingsRowBrowser] = NSLocalizedString(@"Select Browser", nil);
- BVMAboutSettingsTableRowsInSection[BVMAboutSettingsTableViewSectionContactSupport] = BVMAboutSettingsTableContactSupportNumRows;
+ BVMAboutSettingsTableRowsInSection[BVMAboutSettingsTableViewSectionSupport] = BVMAboutSettingsTableSupportNumRows;
BVMAboutSettingsTableRowsInSection[BVMAboutSettingsTableViewSectionUsefulLinks] = BVMAboutSettingsTableUsefulLinksNumRows;
BVMAboutSettingsTableRowsInSection[BVMAboutSettingsTableViewSectionSettings] = BVMAboutSettingsTableSettingsNumRows;
}
@@ -84,10 +86,15 @@ - (void)viewDidLoad
#pragma mark Interface actions
-- (void)sendSupportEmail
+- (void)reportIssue
{
- NSString *url = [NSString stringWithFormat:@"mailto:chris+bvmsupport@chrisdzombak.net?subject=BuyVM%%20Manager%%20Support%%20-%%20%@",
- [BVMAboutSettingsViewController appVersion]];
+ NSString *url = @"https://github.com/cdzombak/BuyVMManager-iOS/issues/new";
+ [BVMLinkOpenManager openURLString:url];
+}
+
+- (void)openGithubProject
+{
+ NSString *url = @"https://github.com/cdzombak/BuyVMManager-iOS/";
[BVMLinkOpenManager openURLString:url];
}
@@ -155,9 +162,12 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
switch (indexPath.section) {
- case BVMAboutSettingsTableViewSectionContactSupport:
- NSParameterAssert(indexPath.row == 0);
- [self sendSupportEmail];
+ case BVMAboutSettingsTableViewSectionSupport:
+ if (indexPath.row == BVMAboutSettingsTableSupportRowReportIssue) {
+ [self reportIssue];
+ } else if (indexPath.row == BVMAboutSettingsTableSupportRowGithubProject) {
+ [self openGithubProject];
+ }
break;
case BVMAboutSettingsTableViewSectionUsefulLinks:

0 comments on commit 78c01cd

Please sign in to comment.
Something went wrong with that request. Please try again.