github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/service/templates/settings.html (about)

     1  {{define "scripts"}}
     2  <script type="text/javascript" src="{{Static "js" "settings.js"}}?hash={{ StaticsMD5 }}"></script>
     3  <script type="text/javascript">
     4    var user_tz = {{.Data.Timezone}};
     5    var new_waterfall = {{.Data.NewWaterfall}}
     6    var userApiKey = {{.User.APIKey}};
     7    var userConf = {{.Config}};
     8    var binaries = {{.Binaries}};
     9  </script>
    10  <style type="text/css">
    11    body{ background: #f5f6f7; }
    12  </style>
    13  {{end}}
    14  
    15  {{define "title"}}
    16  Settings for {{.User.Id}}
    17  {{end}}
    18  
    19  
    20  {{define "content"}}
    21  <div id="content" class="container-fluid" ng-controller="SettingsCtrl">
    22    <notify-box ng-init="destination='errorHeader'"></notify-box>
    23    {{template "flash" . }}
    24    <div class="col-lg-12">
    25      <div class="row" ng-controller="SettingsCtrl">
    26        <div class="col-lg-6">
    27          <div class="row">
    28            <div class="col-lg-12">
    29              <h3 class="section-heading"><i class="fa fa-key"></i> Authentication</h3>
    30              <div class="mci-pod">
    31                <div>
    32                  <p>Copy and paste these settings into ~/.evergreen.yml to authenticate the command line client.</p>
    33                  <pre readonly style="font-family:monospace" id="conf">
    34  user: "[[userConf.user]]"
    35  api_key: "[[userConf.api_key]]"
    36  api_server_host: "[[userConf.api_server_host]]"
    37  ui_server_host: "[[userConf.ui_server_host]]"</pre>
    38                  <div><button ng-click="newKey()" class="btn btn-primary">Reset API Key</button></div>
    39                </div>
    40              </div>
    41            </div>
    42          </div>
    43        </div>
    44        <div class="col-lg-6">
    45          <div class="row">
    46            <div class="col-lg-12">
    47              <h3 class="section-heading"><i class="fa fa-download"></i> Command Line Client</h3>
    48              <div class="mci-pod">
    49                <div class="row">
    50                  <div class="col-lg-3">
    51                    <div ng-repeat="bin in binaries">
    52                      <a ng-href="[[bin.url]]"> [[bin.os]]/[[bin.arch]]</a>
    53                    </div>
    54                  </div>
    55                  <div class="col-lg-9">
    56                    <p>The latest Evergreen command line client is available for download on these platforms.</p>
    57                    <p>
    58                    The command line client lets you run patch builds and debug project configuration files from your terminal.
    59                    View the <a href="https://github.com/evergreen-ci/evergreen/wiki/Using-the-command-line-tool">documentation</a> or run <code>evergreen --help</code> or <code>evergreen [command] --help</code> for additional assistance.
    60                    </p>
    61                  </div>
    62                </div>
    63              </div>
    64            </div>
    65          </div>
    66          <div class="row">
    67            <div class="col-lg-12">
    68              <h3 class="section-heading"><i class="fa fa-globe"></i> User Settings</h3>
    69              <div class="mci-pod">
    70                <form novalidate class="form-horizontal">
    71                  <div class="form-group">
    72                    <label for="timezone" class="col-sm-4 control-label">Timezone</label>
    73                    <div class="col-sm-8">
    74                      <select class="form-control" ng-model="new_tz" ng-options="t.value as t.str for t in timezones"></select>
    75                    </div>
    76                  </div>
    77                  <div class="center text-center"><button ng-click="updateUserSettings(new_tz, new_waterfall)" class="btn btn-primary">Save</button></div>
    78                </form>
    79              </div>
    80            </div>
    81          </div>
    82        </div>
    83      </div>
    84    </div>
    85  </div>
    86  </div>
    87  {{end}}