mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add Git section in settings
This commit is contained in:
parent
2f291b167e
commit
19e379f084
1 changed files with 43 additions and 38 deletions
|
@ -724,6 +724,49 @@
|
|||
<p><input type="button" class="btn btn-bright save-button" value="Save" data-success="Changes saved successfully"></p>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane" id="tabs-7">
|
||||
% if plexpy.INSTALL_TYPE == 'git':
|
||||
<div class="padded-header">
|
||||
<h3>Git Settings</h3>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="git_branch">Git Remote / Branch</label>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="input-group git-group">
|
||||
<input type="text" class="form-control" id="git_remote" name="git_remote" value="${config['git_remote']}" data-parsley-trigger="change">
|
||||
<select class="form-control" id="git_branch" name="git_branch">
|
||||
% if config['git_branch'] == 'master':
|
||||
<option value="master" selected>master</option>
|
||||
<option value="dev">dev</option>
|
||||
% elif config['git_branch'] == 'dev':
|
||||
<option value="master">master</option>
|
||||
<option value="dev" selected>dev</option>
|
||||
% else:
|
||||
<option value="master">master</option>
|
||||
<option value="dev">dev</option>
|
||||
<option value="${config['git_branch']}" selected>${config['git_branch']}</option>
|
||||
% endif
|
||||
</select>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-form" type="button" id="switch_git_branch">Checkout Branch</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block">The git tracking remote and branch (default "origin/master"). Select to switch the git branch (requires restart).</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="git_path">Git Path</label>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control" id="git_path" name="git_path" value="${config['git_path']}" size="30">
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block">The path to your git environment variable. Leave blank for default.</p>
|
||||
</div>
|
||||
% endif
|
||||
|
||||
<div class="padded-header">
|
||||
<h3>Extra Settings</h3>
|
||||
</div>
|
||||
|
@ -758,44 +801,6 @@
|
|||
Note: Video preview thumbnails (BIF) are not cached.
|
||||
</p>
|
||||
</div>
|
||||
% if plexpy.INSTALL_TYPE == 'git':
|
||||
<div class="form-group">
|
||||
<label for="git_branch">Git Remote / Branch</label>
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
<div class="input-group git-group">
|
||||
<input type="text" class="form-control" id="git_remote" name="git_remote" value="${config['git_remote']}" data-parsley-trigger="change">
|
||||
<select class="form-control" id="git_branch" name="git_branch">
|
||||
% if config['git_branch'] == 'master':
|
||||
<option value="master" selected>master</option>
|
||||
<option value="dev">dev</option>
|
||||
% elif config['git_branch'] == 'dev':
|
||||
<option value="master">master</option>
|
||||
<option value="dev" selected>dev</option>
|
||||
% else:
|
||||
<option value="master">master</option>
|
||||
<option value="dev">dev</option>
|
||||
<option value="${config['git_branch']}" selected>${config['git_branch']}</option>
|
||||
% endif
|
||||
</select>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-form" type="button" id="switch_git_branch">Checkout Branch</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block">The git tracking remote (default "origin") and branch (default "master"). Select to switch the git branch (requires restart).</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="git_path">Git Path</label>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control" id="git_path" name="git_path" value="${config['git_path']}" size="30">
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block">The path to your git environment variable. Leave blank for default.</p>
|
||||
</div>
|
||||
% endif
|
||||
<div class="form-group">
|
||||
<label for="anon_redirect">Anonymous Redirect</label>
|
||||
<div class="row">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue