diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css
index 1a95640..34ac8c6 100644
--- a/pagure/static/pagure.css
+++ b/pagure/static/pagure.css
@@ -596,6 +596,7 @@ blockquote {
margin-top: -4px;
color: #999;
}
+
.msg-git-hash{
font-family:monospace;
background-color:#eee;
@@ -696,6 +697,11 @@ a.nav-link.btn{
background-color:#ddd;
}
+.semi_link {
+ color: #0275d8;
+ cursor: pointer;
+}
+
.codehilite .hll { background-color: #ffffcc }
.codehilite { background: #f8f8f8; }
.codehilite .c { color: #8f5902; font-style: italic } /* Comment */
diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html
index 8f17577..ad79d65 100644
--- a/pagure/templates/pull_request.html
+++ b/pagure/templates/pull_request.html
@@ -163,7 +163,9 @@
repo=repo.name,
username=username,
namespace=repo.namespace,
- commitid=commitid, branch_from=branch_from,
+ commitid=commitid,
+ branch_from=branch_from,
+ project_to=project_to,
branch_to=branch_to) }}" method="post">
{% endif %}
@@ -187,7 +189,10 @@
into
- {{ parent.fullname }}
+
+ {{ parent.fullname }}
+
-
{{ form.csrf_token }}
+
+
+{% endif %}
@@ -1087,7 +1125,6 @@ $(document).ready(function() {
var folder = '{{url_for("static", filename="emoji/png/") }}';
var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
-
var branchselect = $('#branch_select').selectize({
create: false,
sortField: 'text',
@@ -1211,6 +1248,43 @@ $(document).ready(function() {
show_merge_status()
{% endif %}
+{% elif form %}
+{# No pull_request object, this is about creating a new PR #}
+
+ $('#target_modal').on('shown.bs.modal', function (e) {
+ var _url = '{{ url_for(
+ 'internal_ns.get_project_family',
+ repo=repo.name,
+ username=username,
+ namespace=repo.namespace) }}'
+ $.ajax({
+ url: _url,
+ type: 'POST',
+ dataType: 'json',
+ data: {
+ csrf_token: "{{ form.csrf_token.current_token }}",
+ },
+ success: function(res) {
+ var _text = ''
+ for (el in res.family) {
+ var _t = '';
+ _t = _t.replace('---', res.family[el]);
+ _text += _t;
+ }
+ var _el = $('#family_list');
+ _el.html(_text);
+ },
+ });
+ });
+
{% endif %}
});