Commits

joberschweiber committed 7c6ec2b

Make issues switchable

  • Participants
  • Parent commits 41087c8

Comments (0)

Files changed (4)

rhodecode/lib/base.py

         c.ga_code = config.get('rhodecode_ga_code')
         c.repo_name = get_repo_slug(request)
         c.backends = BACKENDS.keys()
+        c.enable_issues = config.get('issues.enable_builtin')
         self.cut_off_limit = int(config.get('cut_off_limit'))
 
         self.sa = meta.Session()

rhodecode/templates/admin/repos/repo_edit.html

             </fieldset>
         ${h.end_form()}
 
+        %if c.enable_issues:
         <form class="form-stacked">
             <fieldset>
                 <legend>${_('Issue settings')}</legend>
                 </div>
             </fieldset>
         </form>
+        %endif
     
 </div>
     </div>

rhodecode/templates/base/base.html

   <ul class="nav nav-tabs">
     <li class="${current_class('code')}">${h.link_to(_('Code'), h.url('files_home', repo_name=c.repo_name))}</li>
     <li class="${current_class('history')}">${h.link_to(_('History'), h.url('changelog_home', repo_name=c.repo_name))}</li>
+    %if c.enable_issues:
     <li class="${current_class('issues')}">${h.link_to(_('Issues'), h.url('issues_home', repo_name=c.repo_name))}</li>
+    %endif
     %if h.HasRepoPermissionAny('hg.admin', 'repository.admin'):
     <li class="${current_class('admin')}">${h.link_to(_('Admin'), h.url('repo_admin', repo_name=c.repo_name))}</li>
     %endif

rhodecode/templates/settings/repo_admin.html

 <div class="tabbable tabs-left">
     <ul class="nav nav-tabs">
         <li class="active"><a href="#1" data-toggle="tab">Settings</a></li>
+        %if c.enable_issues:
         <li><a href="#issues" data-toggle="tab">Issues</a></li>
+        %endif
         <li><a href="#advanced" data-toggle="tab">Advanced</a></li>
     </ul>