#59 Drop the static and templates files
Merged 7 years ago by pingou. Opened 7 years ago by pingou.

file removed
-283
@@ -1,283 +0,0 @@ 

- {% extends "repo_master.html" %}

- 

- {% block title %}Commit - {{

-     repo.namespace + '/' if repo.namespace }}{{ repo.name }} - {{ commitid }}{% endblock %}

- {% set tag = "commit" %}

- 

- {% block repo %}

- 

- {% set split_message = commit.message.split('\n') %}

- <div class="header">

-   <h4>

-     <span class="label label-default" title="{{ commitid }}">Commit {{ commitid|short }}</span>

-     <span>{{ split_message[0] }}</span>

-     <div class="pull-xs-right btn-group">

-       <a class="btn btn-secondary btn-sm" href="{{ url_for(

-         'ui_ns.view_raw_file',

-         repo=repo.name,

-         username=username,

-         namespace=repo.namespace,

-         identifier=commitid) }}" title="View as raw">raw</a>

-       <a class="btn btn-secondary btn-sm" href="{{ url_for(

-         'ui_ns.view_commit_patch',

-         repo=repo.name,

-         username=username,

-         namespace=repo.namespace,

-         commitid=commitid) }}">patch</a>

-       <a class="btn btn-secondary btn-sm" href="{{ url_for(

-         'ui_ns.view_tree', username=username, namespace=repo.namespace,

-         repo=repo.name, identifier=commitid) }}">tree</a>

-       {% if (commit.parents|length) == 1 %}

-       <a class="btn btn-secondary btn-sm" title={{commit.parents[0].oid.hex}} href="{{ url_for(

-         'ui_ns.view_commit',

-         repo=repo.name,

-         username=username,

-         namespace=repo.namespace,

-         commitid=commit.parents[0].oid.hex) }}">parent</a>

-       {% elif (commit.parents|length) > 1 %}

-       <div class="btn-group" role="group">

-         <button id="parentsDrop" type="button" class="btn btn-secondary btn-sm dropdown-toggle"

-             data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

-           parents

-         </button>

-         <div class="dropdown-menu dropdown-menu-right" aria-labelledby="parentsDrop">

-           {% for parent in commit.parents %}

-             <a class="dropdown-item" href="{{ url_for(

-                 'ui_ns.view_commit',

-                 repo=repo.name,

-                 username=username,

-                 namespace=repo.namespace,

-                 commitid=parent.oid.hex)

-             }}" class="commitid">{{ parent.oid.hex }}</a>

-           {% endfor %}

-         </div>

-       </div>

-       {% endif %}

-     </div>

-   </h4>

-   <h5 class="text-muted">

-     {% if (commit.author|author2user) == (commit.committer|author2user) %}

-       <a href="#" id="diff_list_link">{{ diff|count }} file{{'s' if (diff|count) > 1 }}</a>

-       {% if (commit.parents|length) == 1 %}

-         Authored and Committed by {{ commit.author|author2user|safe }}

-       {% else %}

-         Merged and Committed by {{ commit.author|author2user|safe }}

-       {% endif %}

-       <span data-toggle="tooltip" title="{{ commit.commit_time|format_ts }}">

-         {{ commit.commit_time|humanize }}

-       </span>

-     {% else %}

-       <a href="#" id="diff_list_link">{{ diff|count }} file{{'s' if (diff|count) > 1 }}</a>

-       {% if (commit.parents|length) == 1 %}

-         Authored by {{ commit.author|author2user|safe }}

-       {% else %}

-         Merged by {{ commit.author|author2user|safe }}

-       {% endif %}

-       <span data-toggle="tooltip" title="{{ commit.commit_time|format_ts }}">

-         {{ commit.commit_time|humanize }}

-       </span>,

-       Committed by {{ commit.committer|author2user|safe }}

-       <span data-toggle="tooltip" title="{{ commit.commit_time|format_ts }}">

-         {{ commit.commit_time|humanize }}

-       </span>,

-     {% endif %}

-   </h5>

- </div>

- <div id="msg_banner"></div>

- 

- <div class="list-group" id="diff_list" style="display:none;">

-   {% set filecount = 0 %}

-   {% for patch in diff %}

-       {% set filecount = filecount + 1 %}

-       {% if patch|hasattr('new_file_path') %}

-         <a class="list-group-item" href="#diff-file-{{filecount}}">

-           {{ patch.new_file_path|unicode}}

-       {% elif patch|hasattr('delta') %}

-         <a class="list-group-item" href="#diff-file-{{filecount}}">

-           {{ patch.delta.new_file.path|unicode }}

-       {% endif %}

-       <div class="pull-xs-right">

-         {% if not patch.is_binary  %}

-         {% if patch|hasattr('additions') %}

-         {% if (patch.additions + patch.deletions) %}

-           <span style="width: {{ (100.0 * patch.additions / (patch.additions + patch.deletions))|round|int }}%">

-             {% if patch.additions > 0 %}<span class="label label-success">+{{ patch.additions }}</span>{% endif %}

-             {% if patch.deletions > 0 %}<span class="label label-danger">-{{ patch.deletions }}</span>{% endif %}

-           </span>

-         {% endif %}

-         {% else %}

-         {% if (patch.line_stats[1] + patch.line_stats[2]) %}

-           <span style="width: {{ (100.0 * patch.line_stats[1] / (patch.line_stats[1] + patch.line_stats[2]))|round|int }}%">

-             {% if patch.line_stats[1] > 0 %}<span class="label label-success">+{{ patch.line_stats[1] }}</span>{% endif %}

-             {% if patch.line_stats[2] > 0 %}<span class="label label-danger">-{{ patch.line_stats[2] }}</span>{% endif %}

-           </span>

-         {% endif %}

-         {% endif %}

-         {% endif %}

-       </div>

-       {{ patch.new_file_path|unicode }}

-     </a>

-   {% endfor %}

- </div>

- 

- <div class="m-y-1">

-     {% if split_message|length > 1 %}

-     <pre class="commit_message_body">

-         {% for message in split_message %}

- {{ message }}

-         {% endfor %}

-     </pre>

-     {% endif %}

- </div>

- 

- <section class="list-group" id="flag_list">

-   <div class="card" id="pr_flags">

-       <ul class="list-group list-group-flush">

-         {% for flag in flags %}

-           <li class="list-group-item">

-             <div>

-               <span>

-                 <a href="{{ flag.url }}">{{ flag.username }}</a>

-               </span>

-               <div class="pull-xs-right">

-                 <span class="label {{ flag | flag2label }}">

-                   {{ flag.status }}

-                   {%- if flag.percent %} ({{ flag.percent }}%) {%- endif %}

-                 </span>

-               </div>

-             </div>

-             <small><div class="clearfix">

-                 <span>{{ flag.comment }}</span>

-                 <div title="{{ flag.date_created }}" class="pull-xs-right">

-                 {{ flag.date_created | humanize }}</div>

-             </div>

-             </small>

-           </li>

-         {% endfor %}

-       </ul>

-     </div>

- </section>

- 

- {% set filecount = 0 %}

- {% for patch in diff %}

-   {% set filecount = filecount + 1 %}

- <div class="card" id="diff-file-{{filecount}}">

-   <div class="card-header">

-     {% if patch|hasattr('new_file_path') %}

-       <a href="{{ url_for(

-           'ui_ns.view_file', username=username, namespace=repo.namespace,

-           repo=repo.name, identifier=commitid,

-           filename=patch.new_file_path) }}" title="View file as of {{ commitid|short }}">

-         {{  patch.new_file_path|unicode }}

-       </a>

-     {% elif patch|hasattr('delta') %}

-       <a href="{{ url_for(

-           'ui_ns.view_file', username=username, namespace=repo.namespace,

-           repo=repo.name, identifier=commitid,

-           filename=patch.delta.new_file.path) }}" title="View file as of {{ commitid|short }}">

-         {{  patch.delta.new_file.path|unicode }}

-       </a>

-     {% endif %}

-         {% if not patch.is_binary  %}

-           {% if patch|hasattr('additions') %}

-           {% if (patch.additions + patch.deletions) %}

-             <span style="width: {{ (100.0 * patch.additions / (patch.additions + patch.deletions))|round|int }}%">

-               {% if patch.additions > 0 %}<span class="label label-success">+{{ patch.additions }}</span> {% endif %}

-               {% if patch.deletions > 0 %}<span class="label label-danger">-{{ patch.deletions }}</span>{% endif %}

-             </span>

-           {% endif %}

-           {% else %}

-           {% if (patch.line_stats[1] + patch.line_stats[2]) %}

-             <span style="width: {{ (100.0 * patch.line_stats[1] / (patch.line_stats[1] + patch.line_stats[2]))|round|int }}%">

-               {% if patch.line_stats[1] > 0 %}<span class="label label-success">+{{ patch.line_stats[1] }}</span> {% endif %}

-               {% if patch.line_stats[2] > 0 %}<span class="label label-danger">-{{ patch.line_stats[2] }}</span>{% endif %}

-             </span>

-           {% endif %}

-           {% endif %}

-           {% endif %}

-   </div>

- 

-     {% if patch.is_binary %}

-         <p class="noresult">Binary diffs cannot be rendered.</p>

-     {% else %}

-         {% autoescape false %}

-         {{ patch|patch_to_diff|html_diff}}

-         {% endautoescape %}

-     {% endif %}

- </div>

- 

- {% endfor %}

- 

- {% endblock %}

- 

- 

- 

- {% block jscripts %}

-     {{ super() }}

-     <script type="text/javascript">

-       $(function(){

-         $('#diff_list_link').click(function(){

-           $('#diff_list').toggle();

-         });

-       });

-       $.ajax({

-         url: '{{ url_for("internal_ns.get_branches_of_commit") }}' ,

-         type: 'POST',

-         data: {

-           repo: "{{ repo.name }}",

-           repouser: "{{ repo.user.user if repo.is_fork else '' }}",

-           namespace: "{{ repo.namespace }}",

-           commit_id: "{{ commitid }}",

-           csrf_token: "{{ form.csrf_token.current_token }}",

-         },

-         dataType: 'json',

-         success: function(res) {

-             if (res.branches.length == 0){

-                 return;

-             }

-             var _br = '';

-             for (var i = 0; i < res.branches.length; ++i) {

-                 if (_br.length > 0){

-                     _br += ', ';

-                 }

-                 _br += res.branches[i]

-             }

-             var el = $('#diff-file-1');

-             if (!el){

-                 return;

-             }

-             el.before(

-                 '<div class=""><span class="oi" data-glyph="fork"></span> '

-                 + _br + '</div>');

-         }

-       });

-     {% if config.get('RESULTSDB_URL') %}

-       var _base_url = '{{ config.get("RESULTSDB_URL").rstrip("/") }}/api/v2.0/';

-       var _url = _base_url

-         + "results/latest?rev=" + '{{ commitid }}'

-         + "&repo=" + '{{ repo.name }}'

-         + "&namespace=" + '{{ repo.namespace }}'

-         + "&testcases=org.centos.prod.ci.pipeline.complete";

-       $.ajax({

-         url: _url ,

-         type: 'GET',

-         dataType: 'jsonp',

-         success: function(res) {

-           var el = $('#msg_banner');

-           ref_url = res.data[0]['ref_url'];

-           status = res.data[0]['outcome'];

-           var _lbl = 'label-danger';

-           if (status == 'PASSED') {

-             _lbl = 'label-success';

-           }

-           var html = '<div class="pull-xs-right">'

-             + '<a class="small label label-sm ' + _lbl + '" data-toggle="tooltip"'

-             + 'href="' + ref_url + '"'

-             + 'title="{{ commitid }} ' + status +' the Fedora Atomic CI pipeline">'

-             + status + ' Atomic CI</a></div>';

-           el.html(html);

-         }

-       });

-     {% endif %}

-     </script>

- {% endblock %}

file removed
-254
@@ -1,254 +0,0 @@ 

- {% extends "repo_master.html" %}

- 

- {% from "_render_repo.html" import pagination_link %}

- 

- {% block title %}{{ select.capitalize() }} - {{

-     repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %}

- {% set tag = "home" %}

- 

- {% block header %}

-   {{ super() }}

- <style>

-   .glyphicon.glyphicon-one-fine-dot:before {

-     content: "\25cf";

-     font-size: 1em;

-   }

- </style>

- {% endblock %}

- 

- {% block repo %}

-   <div class="row m-b-1">

-     {% if g.repo_obj and g.repo_obj.is_empty %}

-     <div class="col-md-12">

-       <div class="alert alert-info" role="alert">

-         <p>This repo is brand new!</p>

-         <p>There are no commits to this project yet</p>

-       </div>

-     </div>

-     {% else %}

-     <div class="col-sm-6">

-     <h3>

-       Commits <span class="label label-default"> {{number_of_commits}}</span>

-     </h3>

-     </div>

- 

-     <div class="col-sm-6">

-       <div class="pull-xs-right">

-       <div class="button-label button-label-default">

-         {% if repo.is_fork %}

-         <span class="oi" data-glyph="fork"></span>

-         {{ repo.user.user }}/{{ repo.name }}

-         {% else %}

-         <span class="oi" data-glyph="document"></span> {{ repo.name }}

-         {% endif %}

- 

-       </div>

-       {% if branchname %}

-         <div class="btn-group">

-           <button type="button" class="btn btn-secondary btn-sm dropdown-toggle"

-                   data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

-                   <span class="oi" data-glyph="random"> </span> {{ branchname }}

-           </button>

-           <div class="dropdown-menu dropdown-menu-right">

-             {% for branch in g.branches %}

-                 <a class="dropdown-item" href="{{ url_for(

-                     'ui_ns.view_commits',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     branchname=branch) }}">

-                   {{ branch }}

-                 </a>

-             {% endfor %}

-           </div>

-         </div>

-       {% endif %}

-     </div>

-   </div>

-   </div>

- 

-     {% if (diff_commits|count) > 0 and head %}

-     <div class="alert alert-info" role="alert">

-       This branch contains <a href="#" id="diff_commits_link">

-       {{ diff_commits|count }} commits</a> not in

-       {% if repo.is_fork %}

-         the upstream project

-         <span class="pr-toplabel">

-           <span class="oi" data-glyph="document"></span>

-           {{ repo.name }}

-           </span>

-       {% else %}

-         the main branch

-       {% endif %}

-       <span class="pr-toplabel">

-         <span class="oi" data-glyph="random"> </span>

-         {{head}}

-       </span>

- 

-       {% if diff_commits and authenticated and head and

-         (repo.is_fork or repo.settings.get('pull_requests', True)) %}

-           <div id="request_pull" class="pull-xs-right">

-             <a class="btn btn-primary btn-sm"

-               href="{{ url_for('ui_ns.new_request_pull',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     branch_to=head, branch_from=branchname or 'master') }}">

-               {% if g.repo_committer %}Create pull request{% else %}Compare{% endif %}

-             </a>

-           </div>

-       {% endif %}

- 

-       <div id="diff_commits" class="list-group m-t-1" style="display:none;">

-         {% for diff_commit_full in diff_commits_full %}

-            <a href="{{ url_for('ui_ns.view_commit',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     commitid=diff_commit_full.hex)

-               }}" class="list-group-item">

-               <h5>

-                 <strong>{{ diff_commit_full.message.split('\n')[0] }}</strong>

-                 <div class="pull-xs-right">

-                   <span class="commitdate"

-                         title="{{ diff_commit_full.commit_time|format_ts }}">

-                     {{ diff_commit_full.commit_time|humanize }}

-                   </span>

-                 </div>

-               </h5>

-               {{ diff_commit_full.author|author2avatar(20)|safe }}

-               {{ diff_commit_full.author.name }}

-               <div class="pull-xs-right">

-                 <span class="label label-default">

-                   {{ diff_commit_full.hex|short }}

-                 </span>

-               </div>

-             </a>

-         {% endfor %}

-       </div>

-     </div>

-     {% endif %}

- 

-       <div class="list-group m-t-1">

-         {% for commit in last_commits %}

-           <div class="list-group-item{%

-                 if diff_commits and commit.oid.hex in diff_commits %} p-l-3{%

-                 endif %}" style="position:relative;">

-             {% if diff_commits and commit.oid.hex in diff_commits %}

-               <div title="This commit is not in the main branch of this Repo"

-                   style="position:absolute; left:0; top:0; padding:5px;

-                          padding-top:20px; height:100%; background:#eee;

-                          vertical-align:middle;">

-                 <span class="oi" data-glyph="arrow-thick-right"></span>

-               </div>

-             {% endif %}

-             <h5>

-               <a href="{{ url_for('ui_ns.view_commit',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     commitid=commit.hex, branch=branchname) }}"

-                   class="notblue">

-                 <strong>{{ commit.message.split('\n')[0] }}</strong>

-                 <div class="pull-xs-right">

-                   <span class="commitdate"

-                         title="{{ commit.commit_time|format_ts }}">

-                     {{ commit.commit_time|humanize }}

-                   </span>

-                 </div>

-               </a>

-             </h5>

-               {{ commit.author|author2user_commits(

-                 link=url_for('ui_ns.view_commits',

-                     repo=repo.name,

-                     branchname=branchname,

-                     username=username,

-                     namespace=repo.namespace,

-                     author=commit.author.email),

-                 cssclass="notblue")|safe }}

-             <div class="pull-xs-right">

-               <span class="label label-default commithash" id="c_{{ commit.hex }}">

-                 {{ commit.hex|short }}

-               </span>

-             </div>

-           </div>

-         {% endfor %}

-       </div>

- 

-       {{ pagination_link('page', g.page, total_page) }}

- 

-     {% endif %}

-     </div>

- {% endblock %}

- 

- {% block jscripts %}

- {{ super() }}

- <script type="text/javascript">

-   $(function(){

-     $('#diff_commits_link').click(function(){

-       $('#diff_commits').toggle();

-     });

-     $.ajax({

-         url: '{{ url_for("internal_ns.get_branches_head") }}' ,

-         type: 'POST',

-         data: {

-           repo: "{{ repo.name }}",

-           repouser: "{{ repo.user.user if repo.is_fork else '' }}",

-           namespace: "{{ repo.namespace if repo.namespace else '' }}",

-           csrf_token: "{{ form.csrf_token.current_token }}",

-         },

-         dataType: 'json',

-         success: function(res) {

-           for (var _c in res.heads) {

-             for (var i=0; i < res.heads[_c].length; i++){

-               var _url = '{{ url_for('ui_ns.view_commits',

-                 repo=repo.name,

-                 branchname='---',

-                 username=username,

-                 namespace=repo.namespace) }}';

-               var _b = res.heads[_c][i];

-               var html = '<a href="' + _url.replace('---', _b) + '">'

-                 +'<span class="label label-info"'

-                 +'title="Head of branch(es): ' + _b + '">'

-                 + '<span class="oi" data-glyph="fork"></span> '

-                 + _b + '</span></a> ';

-               var el = $('#c_' + _c);

-               el.parent().before(html);

-             }

-           }

-         },

-     });

-   });

-   {% if config.get('RESULTSDB_URL') %}

-     var _base_url = '{{ config.get("RESULTSDB_URL").rstrip("/") }}/api/v2.0/';

-     var _url = _base_url

-       + "results/latest?repo=" + '{{ repo.name }}'

-       + "&namespace=" + '{{ repo.namespace }}'

-       + "&testcases=org.centos.prod.ci.pipeline.complete";

-     var listItems = $(".commithash");

-     listItems.each(function(idx, li) {

-       var _id = $(li).attr('id');

-       var _h = _id.substring(2)

-       $.ajax({

-         url: _url + '&rev=' + _h,

-         type: 'GET',

-         dataType: 'jsonp',

-         success: function(res) {

-           var el = $(li);

-           ref_url = res.data[0]['ref_url'];

-           status = res.data[0]['outcome'];

-           var _lbl = 'red';

-           if (status == 'PASSED') {

-             _lbl = '#06ea10';

-           }

-           var html = '<a style="color:' + _lbl + '" data-toggle="tooltip"'

-             + 'href="' + ref_url + '"'

-             + 'title="{{ commitid }} ' + status +' the Fedora Atomic CI pipeline">'

-             + '<span class="glyphicon glyphicon-one-fine-dot"></span></a>';

-           el.after(html);

-         }

-       });

-     });

-   {% endif %}

- </script>

- {% endblock %}

file removed
-141
@@ -1,141 +0,0 @@ 

- {% extends "master.html" %}

- 

- {% block title %}Home{% endblock %}

- {% set tag = "home" %}i

- 

- {% from "_render_repo.html" import render_repos, render_user_repos%}

- {% from "_browseheader.html" import browse_header %}

- 

- 

- {% block header %}

- <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"

-   rel="stylesheet" />

- {% endblock %}

- 

- {% block content %}

- <div class="repo-header p-t-1">

-   <div class="container">

-     {{ browse_header(select=select) }}

-   </div>

- </div>

-   <div class="container">

-     {% if not authenticated %}

-     <section class="container p-t-2">

-       <p>

-         Welcome to Fedora's repository for package maintenance. If you're

-         looking to download software to run, look at

-         <a href="https://getfedora.org/">https://getfedora.org/</a>, or a

-         <a href="https://mirrors.fedoraproject.org/">Fedora Mirror</a>.

-         You can also find source RPMs for Fedora-packaged software there.

-         The source code for building those packages is found here.

-       </p>

- 

-       <p>

-         If you are looking for RPM spec files, module and container definitions,

-         Fedora-specific patches, tests, and so on, you're in the right place.

-         You can browse <a href="/browse/projects/">packages</a> and

-         <a href="/users">packagers</a> — and you can fork, improve, and submit

-         pull requests.

-         </p>

- 

-       <p>

-         If you are already a package maintainer, feel free to consult the

-         <a href="https://docs.pagure.org/pagure/usage.html">docs on using

-         pagure</a>. If you'd like to become a package maintainer, see

-         <a href="https://fedoraproject.org/wiki/Join_the_package_collection_maintainers">

-         this guide</a>.

-       </p>

- 

-       <p>

-         Note that package issues are still tracked in

-         <a href="https://bugzilla.redhat.com/">Bugzilla</a>,

-         not with Pagure's issue feature.

-       </p>

-     </section>

-     {% endif %}

- 

-     {{ render_repos(

-         repos, total_page, 'page', page,

-         'All Projects', repos_length, 'repos', username, sorting=sorting) }}

-   </div>

- 

- {% endblock %}

- 

- {% block jscripts %}

-     {{ super() }}

- <script src="{{ url_for('static', filename='vendor/jdenticon/jdenticon.min.js') }}" type="text/javascript"></script>

- <script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>

- <script src="{{ url_for('static', filename='vendor/jquery.dotdotdot/jquery.dotdotdot.min.js') }}" type="text/javascript"></script>

- <script type="text/javascript">

- $(document).ready(function() {

- 

-   $('#headerSearch').on('keypress keydown keyup', function(e) {

-     if (e.which == 13) {

-         e.preventDefault();

-         return false;

-     }

-   });

- 

-   $('#term').selectize({

-     valueField: 'fullname',

-     labelField: 'fullname',

-     searchField: 'fullname',

-     maxItems: 1,

-     create: false,

-     onType: function(value){

-       if (value == ""){

-         this.close();

-       }

-     },

-     onChange: function(value){

-       if (value != ""){

-         $('#headerSearch').submit();

-       }

-     },

-     load: function(query, callback) {

-       if (!query.length) return callback();

-       $.getJSON(

-         "{{ url_for('api_ns.api_projects') }}", {

-           pattern: "*"+query+"*",

-           short: "1",

-         },

-         function( data ) {

-           callback( data.projects );

-         }

-       );

-     },

-     render: {

-       option: function(item, escape) {

-         {% set reponame = 'item.fullname' %}

-         return '<div>'

-           +   '<div class="projecticon-search pull-xs-left">'

-           +     '<span class="oi" data-glyph="document"></span>'

-           +   '</div>'

-           +   '<div class="title">'

-           +     '<span class="name">'

-           +       '<strong>' + escape(item.fullname) + '</strong>'

-           +     '</span>'

-           +   '</div>'

-           +   '<div class="description">'

-           +     '<small>' + escape(item.description) + '</small>'

-           +   '</div>'

-           + '</div>';

-       }

-     },

-   });

- 

-   $(".repo_desc").dotdotdot({

-     watch:"window"

-   });

- 

-   {% if username %}

-     $(function(){

-         $('.show_parts input[type="checkbox"]').change(function(){

-             $('#' + $(this).attr('name')).toggle();

-         });

-     });

-   {% endif %}

- });

- </script>

- 

- {% endblock %}

file removed
-199
@@ -1,199 +0,0 @@ 

- {% extends "master.html" %}

- 

- {% block title %}Home{% endblock %}

- {% set tag = "projects" %}

- {% from "_browseheader.html" import browse_header %}

- 

- 

- {% block header %}

-   <link rel="stylesheet" type="text/css" media="screen"

-       href="{{ url_for('static', filename='toggle.css') }}"/>

- {% endblock %}

- 

- 

- {% from "_render_repo.html" import render_repos_as_card, render_activity_graph %}

- 

- {% block content %}

- <div class="p-t-2">

-   <div class="container">

-     <div class="row">

-       <div class="col-md-8">

- 

-           {{ render_activity_graph(username) }}

- 

-         <div class="card">

-           <div class="card-header">

-             My Projects <span class="label label-default">{{repos | count}}</span>

-             {% if config.get('ENABLE_NEW_PROJECTS', True) and

-                   config.get('ENABLE_UI_NEW_PROJECTS', True) and repos %}

-             <span class="pull-xs-right">

-               <a class="btn btn-secondary btn-sm" href="{{

-                     url_for('ui_ns.new_project') }}">

-                 <span class="oi" data-glyph="plus" data-toggle="tooltip"

-                     title="Create New Project" aria-hidden="true">

-                 </span>

-               </a>

-             </span>

-           {% endif %}

-           </div>

-           {% if repos %}

-             <div class="list-group list-group-flush">

-             {% for repo in repos %}

-               <div class="list-group-item">

-                 {% set url = url_for(

-                     'ui_ns.view_repo',

-                     repo=repo.name,

-                     username=repo.user.username if repo.is_fork else None,

-                     namespace=repo.namespace) %}

-                 <a href="{{ url }}">

-                   {% if repo.avatar_email %}

-                     <img class="projecticon pull-xs-left" src="{{ repo.avatar_email | avatar_url }}" width=20 height=20 />&nbsp;

-                   {% else %}

-                     <span class="oi text-muted" data-glyph="document"></span>

-                   {% endif %}

-                   <strong>{{ repo.namespace + '/' if repo.namespace }}{{ repo.name }}</strong>

-                 </a>

-               </div>

-             {% endfor %}

-             </div>

-         {% else %}

-           <div class="card-block">

-             <div class="text-xs-center">You have no projects</div>

-             <div class="text-xs-center m-t-1">

-               {% if config.get('ENABLE_NEW_PROJECTS', True) and

-                   config.get('ENABLE_UI_NEW_PROJECTS', True) %}

-               <a class="btn btn-success" href="{{ url_for('ui_ns.new_project') }}">

-                 <span class="oi" data-glyph="plus" data-toggle="tooltip"

-                     title="Create New Project" aria-hidden="true">

-                 </span> Create a Project

-               </a>

-               {% endif %}

-             </div>

-           </div>

-         {% endif %}

-         </div>

- 

-         <div class="card">

-           <div class="card-header">

-             My Forks <span class="label label-default">{{forks | count}}</span>

-           </div>

-           {% if forks %}

-             <div class="list-group list-group-flush">

-             {% for fork in forks %}

-               <div class="list-group-item">

-                 {% set url = url_for(

-                     'ui_ns.view_repo',

-                     repo=fork.name,

-                     username=fork.user.username if fork.is_fork else None,

-                     namespace=fork.namespace) %}

- 

-                 <a href="{{ url }}">

-                   <span class="oi text-muted" data-glyph="fork"></span>

-                   <strong>{{fork.user.username}}/{{ fork.namespace + '/' if fork.namespace }}{{ fork.name }}</strong>

-                 </a>

-                   <div class="pull-xs-right">

-                   <span class="text-muted">forked from</span>

-                   <a href="{{ url_for(

-                     'ui_ns.view_repo', repo=fork.parent.name,

-                     namespace=fork.parent.namespace) }}">

-                     {{ fork.parent.namespace + '/' if fork.parent.namespace

-                     }}{{fork.parent.name}}

-                   </a>

- 

-                   </div>

-               </div>

-             {% endfor %}

-             </div>

-         {% else %}

-           <div class="card-block">

-             <p>You have no forks</p>

-           </div>

-         {% endif %}

-         </div>

- 

-       </div>

-       <div class="col-md-4">

-         <div class="card" id="group_list">

-             <div class="card-header">

-                 My Groups <span class="label label-default">{{ user.groups | length }}</span>

-                 <span class="pull-xs-right">

-                   {% if config.get('ENABLE_GROUP_MNGT') %}

-                     <a class="btn btn-secondary btn-sm" href="{{ url_for('ui_ns.add_group') }}">

-                       <span class="oi" data-glyph="plus" data-toggle="tooltip"

-                         title="Create New Group" aria-hidden="true">

-                       </span>

-                     </a>

-                   {% endif %}

-                 </span>

-             </div>

-             {% for group in user.groups %}

-               <div class="list-group">

-                 <a class="list-group-item" href="{{ url_for(

-                     'ui_ns.view_group', group=group)}}">

-                   <div class=""><strong><span class="oi" data-glyph="people">

-                     </span> &nbsp;{{ group }}</strong>

-                   </div>

-                 </a>

-               </div>

-             {% else %}

-             <div class="card-block">

-                 <p>No group found</p>

-             </div>

-             {% endfor %}

-         </div>

-         <div class="card" id="watch_list">

-             <div class="card-header">

-                 My Watch List <span class="label label-default">{{ watch_list | count }}</span>

-             </div>

-             {% for repo in watch_list %}

-               <div class="list-group">

-                 {% if repo.is_fork %}

-                   <a class="list-group-item" href="{{ url_for(

-                     'ui_ns.view_repo',

-                     repo=repo.name,

-                     username=repo.user.username,

-                     namespace=repo.namespace) }}">

-                     <div class="">

-                       <strong>

-                         <span class="oi" data-glyph="fork"></span>

-                         &nbsp;{{ repo.user.username }}/{{

-                           repo.namespace + '/' if repo.namespace

-                               }}{{ repo.name }}

-                       </strong>

-                     </div>

-                   </a>

-                 {% else %}

-                   <a class="list-group-item" href="{{ url_for(

-                     'ui_ns.view_repo', repo=repo.name, namespace=repo.namespace) }}">

-                     <div class="">

-                       <strong>

-                         <span class="oi" data-glyph="document"></span>

-                         &nbsp;{{ repo.namespace + '/' if repo.namespace

-                               }}{{ repo.name }}

-                       </strong>

-                     </div>

-                   </a>

-                 {% endif %}

-               </div>

-             {% else %}

-             <div class="card-block">

-                 <p>No project in watch list</p>

-             </div>

-             {% endfor %}

-         </div>

-       </div>

-     </div>

-   </div>

- </div>

- {% endblock %}

- 

- {% block jscripts %}

-     {{ super() }}

-     <script type="text/javascript">

-       $(function(){

-         $('.show_parts input[type="checkbox"]').change(function(){

-           $('#' + $(this).attr('name')).toggle();

-         });

-       });

-     </script>

- {% endblock %}

file removed
-517
@@ -1,517 +0,0 @@ 

- {% extends "repo_master.html" %}

- 

- 

- {% block title %}{{ select.capitalize() }} - {{

-     repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %}

- {% set tag = "home" %}

- 

- {% block header %}

-   <meta name="go-import" content="{{ config.get('APP_URL').split('://', 1)[1] }}{{ repo.fullname }} git {{ config.get('GIT_URL_GIT') }}{{ repo.fullname }}.git">

-   <style>

-   a.koji {

-     padding-left: 20px;

-     background: url(https://fedoraproject.org/static/images/icons/fedora-infra-icon_koji.png) 0 50% no-repeat;

-   }

-   a.bodhi {

-     padding-left: 20px;

-     background: url(https://fedoraproject.org/static/images/icons/fedora-infra-icon_bodhi.png) 0 50% no-repeat;

-   }

-   a.bugz {

-     padding-left: 20px;

-     background: url(https://fedoraproject.org/static/images/icons/fedora-infra-icon_bugzilla.png) 0 50% no-repeat;

-   }

-   a.community {

-     padding-left: 20px;

-     background: url(https://apps.fedoraproject.org/tagger/images/favicons/16_beefy.png) 0 50% no-repeat;

-   }

-   a.koschei {

-     padding-left: 33px;

-     background: url(https://admin.fedoraproject.org/pkgdb/static/icon_koschei.png) 0 50% no-repeat;

-   }

-   #pkgdescription {

-     white-space: pre-wrap;

-     white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */

-     white-space: -pre-wrap;      /* Opera 4-6 */

-     white-space: -o-pre-wrap;    /* Opera 7 */

-     word-wrap: break-word;       /* Internet Explorer 5.5+ */

-   }

- 

-   .disabled_branch a {

-     color: #818a91;

-   }

-   .disabled_branch .new_pr_btn {

-     display: none;

-   }

-   </style>

- 

- {% endblock %}

- 

- {% block repo %}

- 

-   {% if authenticated and g.repo_committer and not repo.is_fork

-       and not repo.settings.get('pull_requests', True) and not readme %}

-     <div class="row">

-       <div class="col-md-8">

-         <div class="alert alert-warning" role="alert">

-           <button type="button" class="close" data-dismiss="alert" aria-label="Close">

-             <span aria-hidden="true">&times;</span>

-             <span class="sr-only">Close</span>

-           </button>

-           <p>

-             You appear to have turned off pull-request you may want to add

-             a README file with instructions on how to contribute to this

-             project. Thanks!

-           </p>

-         </div>

-       </div>

-     </div>

-   {% endif %}

- 

-   <div class="row">

-     {% if g.repo_obj and g.repo_obj.is_empty %}

-       <div class="col-md-8">

-         <div class="alert {% if category == 'error' %}alert-warning{% else %}alert-info{%endif%}" role="alert">

-           <p>This repo is brand new!</p>

-             {% if authenticated and g.repo_committer %}

-               <p>If you already have a git repo:</p>

-               <pre>git remote add origin {{ config.get('GIT_URL_SSH') }}{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git

- git push -u origin master</pre>

- 

-               <p>If you have not created your git repo yet:</p>

-               <pre>git clone {{ config.get('GIT_URL_SSH') }}{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git

- cd {{ repo.name }}

- touch README.rst

- git add README.rst

- git commit -m "Add README file"

- git push -u origin master</pre>

-             {% else %}

-               <p>The Project Creator has not pushed any code yet</p>

-             {% endif %}

-         </div>

-       </div>

-     {% else %}

-         <div class="col-md-8">

-           <section id="pkginfo">

-             <div class="row">

-               <div class="col-md-12" id="pkgdescription"></div>

-             </div>

-             <br/>

-             <div class="row">

-               <div class="col-md-2">

-                 <a class="koji"

-                   href="http://koji.fedoraproject.org/koji/search?type=package&match=glob&terms={{ repo.name }}">

-                   Builds status

-                 </a>

-               </div>

-               <div class="col-md-2">

-                 <a class="bodhi"

-                   href="https://bodhi.fedoraproject.org/updates/?packages={{ repo.name }}">

-                   Updates status

-                 </a>

-               </div>

-               <div class="col-md-2">

-                 <a class="bugz"

-                   href="https://apps.fedoraproject.org/packages/{{ repo.name }}/bugs">

-                   Bug reports

-                 </a>

-               </div>

-               <div class="col-md-2">

-                 <a class="community"

-                   href="https://apps.fedoraproject.org/packages/{{ repo.name }}">

-                   Packages

-                 </a>

-               </div>

-               <div class="col-md-2">

-                 <a class="koschei"

-                   href="https://apps.fedoraproject.org/koschei/package/{{ repo.name }}">

-                   Koschei status

-                 </a>

-               </div>

-             </div>

-             <br/>

-           </section>

-           {% if readme %}

-             <section class="readme">

-               {{ readme | noJS | safe }}

-             </section>

-             {% else %}

-             <section class="no-readme">

-               <div class="card">

-                 <div class="card-header text-xs-center text-muted p-t-2 p-b-2">

-                   The {{repo.name}} project's README file is empty or unavailable.

-                 </div>

-               </div>

-             </section>

-           {% endif %}

-         </div>

-     {% endif %}

-       <div class="col-md-4">

-         <div class="card">

-           <div class="card-block">

-             <h5><strong>Contributors</strong></h5>

-             <div class="m-b-2">

-               <div>

-                 <a href="{{ url_for('ui_ns.view_user', username=repo.user.user)}}">

-                   {{ repo.user.default_email | avatar(20) | safe }}

-                   {{ repo.user.fullname }} ({{ repo.user.user }})

-                 </a>

-                 -  main admin

-               </div>

-               {% for access in repo.contributors %}

-                 {% for user in repo.contributors[access] %}

-                   <div>

-                     <a href="{{ url_for('ui_ns.view_user', username=user.user)}}">

-                       {{ user.default_email | avatar(20) | safe }}

-                       {{ user.fullname }} ({{ user.user }})

-                     </a>

-                     - {{ access }}

-                   </div>

-                 {% endfor %}

-               {% endfor %}

-               {% for access in repo.contributor_groups %}

-                 {% for group in repo.contributor_groups[access] %}

-                   <div>

-                     <a href="{{ url_for('ui_ns.view_group', group=group.group_name)}}">

-                       @{{ group.group_name }}

-                     </a>

-                     - {{ access }}

-                   </div>

-                 {% endfor %}

-               {% endfor %}

-             </div>

-             <h5><strong>Branches</strong></h5>

-             <div class="m-b-2">

-               {% if head %}

-               <div id="branch-{{ head }}" class="repoinfo-branchlistitem row">

-                 <div class="branch_name col-md-8">

-                   {% if branchname == head %}

-                   <span class="oi text-muted" data-glyph="random"

-                     title="Default branch"></span>

-                   <strong title="Currently viewing branch {{ head }}" data-toggle="tooltip">{{ head }}</strong>

-                   {% else  %}

-                   <span class="oi text-muted" data-glyph="random"

-                     title="Default branch"></span>

-                   <a href="{{ url_for('ui_ns.view_repo_branch',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     branchname=head) }}"

-                     title="{{ head }}" data-toggle="tooltip">

-                     {{ head }}

-                   </a>

-                   {% endif %}

-                 </div>

-                 <div class="branch_del col-md-4">

-                   <span class="oi text-muted" data-glyph="star"

-                     title="Default branch"></span>

-                 </div>

-               </div>

-               {% endif %}

- 

-             {% for branch in g.branches if branch != head%}

-               <div id="branch-{{ branch | replace('/', '__') }}" class="repoinfo-branchlistitem row">

-                 <div class="branch_name col-md-8">

-                   <span class="oi text-muted" data-glyph="random"></span>

-                   {% if branchname != branch %}

-                   <a class="" href="{{ url_for('ui_ns.view_repo_branch',

-                     repo=repo.name,

-                     username=username,

-                     namespace=repo.namespace,

-                     branchname=branch) }}"

-                     title="{{ branch }}" data-toggle="tooltip">{{ branch }}

-                   </a>

-                   {% else %}

-                   <strong title="Currently viewing branch {{branch}}" data-toggle="tooltip">{{ branch }}</strong>

-                   {% endif %}

- 

-                 </div>

-                 <div class="branch_del col-md-4">

-                   {% if g.repo_committer and branch != head and config.get('ALLOW_DELETE_BRANCH', True) %}

-                   <form id="delete_branch_form-{{ branch | replace('/', '__') }}" action="{{

-                     url_for('ui_ns.delete_branch',

-                             repo=repo.name,

-                             username=username,

-                             namespace=repo.namespace,

-                             branchname=branch)

-                     }}" method="post" class="inline icon del_icon"

-                     onsubmit="return confirm('Are you sure you want to remove the branch: {{ branch }}?\nThis cannot be un-done!');">

-                     {{ form.csrf_token }}

-                     <a title="Remove branch {{ branch }}" href="#"

-                       onclick="$('#delete_branch_form-{{ branch | replace('/', '__') | replace('.', '\\\\.') }}').submit();">

-                       <span class="oi" data-glyph="trash"></span>

-                     </a>

-                   </form>

-                   {% endif %}

-                 </div>

-               </div>

-               {% endfor %}

-             </div>

-             <h5><strong>Source GIT URLs</strong>{% if

-               (authenticated and g.repo_committer) or

-               (config['DOC_APP_URL'] and repo and

-                       repo.settings.get('project_documentation', True))

-               %}

-                   <span class="pull-xs-right"><a data-toggle="collapse" href="#moregiturls"

-                   aria-expanded="false" aria-controls="moregiturls"

-                   id="more_gits">more</a></span>{%endif%}</h5>

-             <div>

-               {% if authenticated and g.repo_committer %}

-               <div class="form-group">

-                 <div class="input-group input-group-sm">

-                   <div class="input-group-addon">SSH</div>

-                   <input class="form-control" type="text" value="{{

-                     git_url_ssh }}{{ repo.fullname }}.git" readonly>

-                 </div>

-               </div>

-               {% endif %}

-               <div class="form-group">

-                 <div class="input-group input-group-sm">

-                   <div class="input-group-addon">GIT</div>

-                   <input class="form-control" type="text" value="{{

-                     config.get('GIT_URL_GIT') }}{{ repo.fullname }}.git" readonly>

-                 </div>

-               </div>

-               <div class="collapse" id="moregiturls">

-                 {% if config['DOC_APP_URL']

-                     and repo

-                     and repo.settings.get('project_documentation', True) %}

-                   <h5><strong>Docs GIT URLs</strong></h5>

-                   {% if authenticated and g.repo_committer %}

-                     <div class="form-group">

-                       <div class="input-group input-group-sm">

-                         <div class="input-group-addon">SSH</div>

-                         <input class="form-control" type="text" value="{{

-                           git_url_ssh }}docs/{{ repo.fullname }}.git" readonly>

-                       </div>

-                     </div>

-                   {% endif %}

-                   <div class="form-group">

-                     <div class="input-group input-group-sm">

-                       <div class="input-group-addon">GIT</div>

-                       <input class="form-control" type="text" value="{{

-                         config.get('GIT_URL_GIT') }}docs/{{ repo.fullname }}.git" readonly>

-                     </div>

-                   </div>

-                 {% endif %}

-                 {% if authenticated and g.repo_committer %}

-                   {% if config.get('ENABLE_TICKETS', True)

-                      and repo.settings.get('issue_tracker', True) %}

-                     <h5><strong>Issues GIT URLs</strong></h5>

-                     <div class="form-group">

-                       <div class="input-group input-group-sm">

-                         <div class="input-group-addon">SSH</div>

-                         <input class="form-control" type="text" value="{{

-                           git_url_ssh }}tickets/{{ repo.fullname }}.git" readonly>

-                       </div>

-                     </div>

-                   {% endif %}

-                   <h5><strong>Pull Requests GIT URLs</strong></h5>

-                   <div class="form-group">

-                     <div class="input-group input-group-sm">

-                       <div class="input-group-addon">SSH</div>

-                       <input class="form-control" type="text" value="{{

-                         git_url_ssh }}requests/{{ repo.fullname }}.git" readonly>

-                     </div>

-                   </div>

-                 {% endif %}

-               </div>

-             </div>

-           </div>

-           <div class="repo_date" title="{{repo.date_created}}">

-               created {{repo.date_created|humanize}}

-           </div>

-         </div>

- 

-         {% if last_commits %}

-           <div class="card">

-             <div class="card-header">

-               <strong>Recent Commits in

-                 <span class="pr-toplabel">

-                   <span class="oi" data-glyph="random"></span>

-                   {{branchname}}

-                 </span>

-               </strong>

-             </div>

-             <div class="card-block p-a-0">

-               <div class="list-group list-group-flush">

-                 {% for commit in last_commits %}

-                   <a href="{{

-                       url_for('ui_ns.view_commit',

-                       repo=repo.name,

-                       username=username,

-                       namespace=repo.namespace,

-                       commitid=commit.hex) }}" class="list-group-item">

-                     <div class="commitdate" title="{{ commit.commit_time|format_ts }}">

-                       <small>

-                         <strong>

-                           {{ commit.author | author2avatar(20) | safe }}

-                           {{ commit.author.name }}

-                         </strong>

-                         commited {{ commit.commit_time|humanize }}

-                       </small>

-                     </div>

-                     <div><small>

-                       {{ commit.message.split('\n')[0] }}

-                     </small></div>

-                   </a>

-                 {% endfor %}

-               </div>

-               </div>

-             </div>

-           </div>

-         {% endif %}

-       </div>

-     </div>

- 

- 

- {% endblock %}

- 

- {% block jscripts %}

- {{ super() }}

- <script type="text/javascript">

- $(document).ready(function() {

-   $(".extra_gits").hide();

-   $.ajax({

-     url: 'https://apps.fedoraproject.org/mdapi/rawhide/pkg/{{ repo.name }}',

-     type: 'GET',

-     dataType: 'jsonp',

-     success: function(res) {

-       $( "#pkgdescription" ).text(res['description']);

-       if (res['url']){

-           var _p = $('.projectinfo');

-           $('.projectinfo').append(

-             ' (<a target="_blank" rel="noopener noreferrer" href="'

-             + res['url'] + '"a>upstream</a>)')

-       }

-     }

-   });

- });

- 

- function disable_branches(){

-   function get_branches(_url){

-     $.ajax({

-       url: _url,

-       type: 'GET',

-       dataType: 'json',

-       success: function(res) {

-         for (branch in res.results){

-           branch = res.results[branch];

-           var _it = $('#branch-' + branch.name);

-           _it.addClass('disabled_branch');

-           if (branch.name == 'master') {

-             var _t = $('.projectinfo');

-             html = ' \

-                 <div class="small label label-sm label-danger" data-toggle="tooltip" \

-                  title="This package has been retired">Retired on Fedora</div>';

-             _t.append(html);

-           }

-         }

-         if (res.next){

-           get_branches(res.next);

-         }

-       }

-     })

-   }

-   var _ns = '{{ repo.namespace }}';

-   if (_ns == 'rpms') {

-     _ns = 'rpm';

-   } else if (_ns == 'modules') {

-     _ns = 'modules';

-   }

-   var _url = 'https://pdc.fedoraproject.org/rest_api/v1/component-branches/'

-         + '?active=false&type=' + _ns + '&global_component={{ repo.name }}';

-   get_branches(_url);

- }

- 

- $(function() {

-   $( "#more_gits" ).click(function() {

-       if ($( "#more_gits" ).html() == 'more') {

-         $( "#more_gits" ).html('less');

-       } else {

-         $( "#more_gits" ).html('more');

-       }

-   });

- 

-   {% if g.authenticated and g.repo_committer %}

-   $.ajax({

-     url: '{{ url_for("internal_ns.get_pull_request_ready_branch") }}' ,

-     type: 'POST',

-     data: {

-       namespace: "{{ repo.namespace if repo.namespace }}",

-       repo: "{{ repo.name }}",

-       repouser: "{{ repo.user.user if repo.is_fork else '' }}",

-       csrf_token: "{{ form.csrf_token.current_token }}",

-     },

-     dataType: 'json',

-     success: function(res) {

-       if (res.code == 'OK'){

-         for (branch in res.message.new_branch){

-           var url = "{{ url_for(

-             'ui_ns.new_request_pull',

-             repo=repo.name,

-             username=repo.user.user if repo.is_fork else None,

-             namespace=repo.namespace,

-             branch_to=head or 'master',

-             branch_from='') }}";

-           html = '<div class="alert alert-info" role="alert"> \

-                 The branch ' + branch +' contains '

-                 + res.message.new_branch[branch].length

-                 +  ' commits not in the main branch \

-                 <span class="pr-toplabel"> \

-                 <span class="oi" data-glyph="random"> </span> \

-                 {{ head }}</span> \

-                 <div id="request_pull" class="col-md-2"> \

-                 <a class="btn btn-primary btn-sm" href="' + url + branch + '"> Create pull request </a> \

-                 </div></div>';

-           /*$($('.bodycontent').find('.row').children()[0]).before(html);*/

-           {% if repo.is_fork %}

-           html2 = ' \

-                 <a class="small label label-sm label-primary new_pr_btn" data-toggle="tooltip" \

-                  href="' + url + branch + '"\

-                  title="' + branch +' contains '

-                  + res.message.new_branch[branch].length+' \

-                  commit not in the upstream project. Click to create new PR now.'+'"> New PR</a> \

-                 </div>';

-           {% else %}

-           html2 = ' \

-                 <a class="small label label-sm label-primary new_pr_btn" data-toggle="tooltip" \

-                  href="' + url + branch + '"\

-                  title="' + branch +' contains '

-                  + res.message.new_branch[branch].length+' \

-                  commit not in the main branch. Click to create new PR now.'+'"> New PR</a> \

-                 </div>';

-           {%endif%}

-           $('#branch-' + branch.replace('.', '\\.').replace('/', '__')

-             + ' .branch_del').prepend(html2);

-           $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});

-         }

-         for (branch in res.message.branch_w_pr){

-           var url = "{{ url_for(

-               'ui_ns.request_pull',

-               repo=repo.name,

-               username=None,

-               namespace=repo.namespace,

-               requestid=-100) }}";

-           url = url.replace(-100, res.message.branch_w_pr[branch]);

-           var html = ' \

-               <a class="small label label-sm label-success" data-toggle="tooltip" \

-               href="' + url + '"\

-               title="' + branch +' is already in an opened pull-request">'

-                + 'PR#' + res.message.branch_w_pr[branch] + ' </a> \

-               </div>';

-           $('#branch-' + branch.replace('.', '\\.').replace('/', '__')

-             + ' .branch_del').prepend(html);

-           $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});

-         }

-       }

-     }

-   });

-   {% endif %}

- 

-   {% if not repo.is_fork %}

-   disable_branches();

-   {% endif %}

- 

- });

- </script>

- {% endblock %}

file removed
-125
@@ -1,125 +0,0 @@ 

- {% extends "master.html" %}

- 

- {% block title %}User {{ user.html_title }}{% endblock %}

- {% set tag = "users" %}

- {% from "_browseheader.html" import browse_header %}

- 

- 

- {% block header %}

-   <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"

-   rel="stylesheet" />

- {% endblock %}

- 

- 

- {% from "_render_repo.html" import render_repos_as_card, render_activity_graph %}

- 

- 

- {% block content %}

- <div class="repo-header p-t-1">

-   <div class="container">

-     {{browse_header(select=tag)}}

-   </div>

- </div>

- <div class="p-t-2">

-   <div class="container">

-     <h2>

-         {{ user.default_email | avatar(36) | safe }} {{ username }}

-     </h2>

-     <p title="{{ user.created.strftime('%Y-%m-%d') }}">

-       Joined {{ user.created | humanize }} {% if config['FAS_URL']

-         %}(<a href="{{ config['FAS_URL'].rstrip('/') }}/user/view/{{ username }}">fas</a>){%

-         endif %}

-       <img src="https://apps.fedoraproject.org/calendar/api/{{ username }}/shield/vacation?connector=on&always=0" alt="" />

-     </p>

-     <div class="row">

-       <div class="col-md-8">

-         {{ render_activity_graph(username) }}

-         {{ render_repos_as_card(repos, repos_length, 'Projects', 'repopage', repopage, total_page_repos) }}

-         {{ render_repos_as_card(forks, forks_length, 'Forks', 'forkpage', forkpage, total_page_forks) }}

-       </div>

-       <div class="col-md-4">

-         <div class="card" id="group_list">

-             <div class="card-header">

-                 Groups <span class="label label-default">{{ user.groups | length }}</span>

-             </div>

-             {% for group in user.groups %}

-               <div class="list-group">

-                 <a class="list-group-item" href="{{ url_for(

-                     'ui_ns.view_group', group=group)}}">

-                   <div class=""><strong><span class="oi" data-glyph="people">

-                     </span> &nbsp;{{ group }}</strong>

-                   </div>

-                 </a>

-               </div>

-             {% else %}

-             <div class="card-block">

-               <p>No group found</p>

-             </div>

-             {% endfor %}

-         </div>

-       </div>

-     </div>

-   </div>

- </div>

- {% endblock %}

- 

- {% block jscripts %}

-     {{ super() }}

-     <script type="text/javascript">

-       $(function(){

-         $('.show_parts input[type="checkbox"]').change(function(){

-           $('#' + $(this).attr('name')).toggle();

-         });

-       });

-     </script>

- <script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>

- <script type="text/javascript">

- $(document).ready(function() {

-   $('#headerSearch').on('keypress keydown keyup', function(e) {

-     if (e.which == 13) {

-         e.preventDefault();

-         return false;

-     }

-   });

-   $('#term').selectize({

-     valueField: 'user',

-     labelField: 'user',

-     searchField: 'user',

-     onType: function(value) {

-       if (value == "") {

-         this.close();

-       }

-     },

-     onChange: function(value) {

-       if (value != "") {

-         $('#headerSearch').submit();

-       }

-     },

-     maxItems: 1,

-     create: false,

-     load: function(query, callback) {

-       if (!query.length) return callback();

-       $.getJSON(

-         "{{ url_for('api_ns.api_users') }}", {

-           pattern: query

-         },

-         function( data ) {

-           callback( data.users.map(function(x) { return { user: x }; }) );

-         }

-       );

-     },

-     render: {

-       option: function(item, escape) {

-         return '<div>' +

-           '<div class="projecticon-search pull-xs-left"><span class="oi" data-glyph="person"></span></div>' +

-           '<div class="title">' +

-             '<span class="name"><strong>' + escape(item.user) + '</strong></span>' +

-           '</div>' +

-           '<div class="description"><small>' + escape(item.user) + '</small></div>' +

-         '</div>';

-       }

-     },

-   });

- });

- </script>

- {% endblock %}