You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2019/01/03 14:57:16 UTC

[11/11] allura git commit: [#5461] subscribe/cancel styling

[#5461] subscribe/cancel styling


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/d69e4176
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d69e4176
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d69e4176

Branch: refs/heads/master
Commit: d69e4176af67b44012bd915de2bd625e3ec664d5
Parents: ce7f141
Author: Dave Brondsema <da...@brondsema.net>
Authored: Fri Dec 21 12:07:34 2018 -0500
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Fri Dec 21 12:07:41 2018 -0500

----------------------------------------------------------------------
 Allura/allura/lib/widgets/repo.py                |  3 ++-
 Allura/allura/nf/allura/css/site_style.css       | 19 +++++++++++++++++++
 Allura/allura/templates/widgets/edit_post.html   |  2 +-
 .../allura/templates/widgets/new_topic_post.html |  2 +-
 .../templates/blog_widgets/post_form.html        |  2 +-
 .../templates/tracker_widgets/ticket_form.html   |  2 +-
 .../forgewiki/templates/wiki/page_edit.html      |  2 +-
 7 files changed, 26 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/Allura/allura/lib/widgets/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/repo.py b/Allura/allura/lib/widgets/repo.py
index 60d358f..d73ef0c 100644
--- a/Allura/allura/lib/widgets/repo.py
+++ b/Allura/allura/lib/widgets/repo.py
@@ -87,7 +87,8 @@ class SCMMergeRequestWidget(ff.ForgeForm):
         # add things after the default submit button
         fields = ew_core.NameList()
         if self.show_subscribe_checkbox:
-            fields.append(ew.Checkbox(name='subscribe', label='Subscribe to this merge request', value=True))
+            fields.append(ew.Checkbox(name='subscribe', label='Subscribe to this merge request', value=True,
+                                      attrs={'class': 'subscribe-checkbox'}))
         return fields
 
 

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/Allura/allura/nf/allura/css/site_style.css
----------------------------------------------------------------------
diff --git a/Allura/allura/nf/allura/css/site_style.css b/Allura/allura/nf/allura/css/site_style.css
index 6c7db3b..ae910c0 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -2630,6 +2630,21 @@ div.attachment_item{
 .edit_post_form.reply .arw {
   display: none;
 }
+.edit_markdown_form .btn.link.attachment_form_add_button {
+    margin: 0 0 5px 5px;
+}
+.subscribe-checkbox {
+    margin-top: 7px;
+}
+.pad .editbox label.subscribe {
+    font-weight: normal;  /* override .pad .editbox label */
+}
+.btn.link.cancel_edit_post,
+.btn.link.cancel_form
+{
+    float:right;
+    margin-right: 35px;
+}
 
 #create_new_topic select {
   width: auto;
@@ -2919,6 +2934,10 @@ h1.title .viewer:hover {
 #forge_wiki_browse tr.deleted a {
   color: red;
 }
+#page_edit_form input[value=Cancel] {
+    float: right;
+    margin-right: 40px;
+}
 
 .scm-branch-label, .scm-tag-label {
   -moz-border-radius: 4px;

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/Allura/allura/templates/widgets/edit_post.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/edit_post.html b/Allura/allura/templates/widgets/edit_post.html
index 49a8242..6f0de46 100644
--- a/Allura/allura/templates/widgets/edit_post.html
+++ b/Allura/allura/templates/widgets/edit_post.html
@@ -34,7 +34,7 @@
     <input type="submit" value="{{submit_text}}" />
     {% if primary_artifact and c.user and c.user != c.user.anonymous() and not primary_artifact.subscribed() %}
       <label class="subscribe">
-        <input type="checkbox" checked name="subscribe">Subscribe to this {{ primary_artifact.type_name }}
+        <input type="checkbox" checked name="subscribe" class="subscribe-checkbox">Subscribe to this {{ primary_artifact.type_name }}
       </label>
     {% endif %}
     <a href="#" class="ui-button btn link cancel_edit_post">Cancel</a>

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/Allura/allura/templates/widgets/new_topic_post.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/new_topic_post.html b/Allura/allura/templates/widgets/new_topic_post.html
index 8910187..e62249e 100644
--- a/Allura/allura/templates/widgets/new_topic_post.html
+++ b/Allura/allura/templates/widgets/new_topic_post.html
@@ -52,7 +52,7 @@
       {% if c.user and c.user != c.user.anonymous() and not (subscribed or subscribed_to_tool) %}
         {# subscribed is per-forum and won't change if they change the forum dropdown value, but better than nothing? :( #}
         <label class="subscribe">
-          <input type="checkbox" checked name="subscribe">Subscribe to this topic
+          <input type="checkbox" checked name="subscribe" class="subscribe-checkbox">Subscribe to this topic
         </label>
       {% endif %}
       <a href=".." class="btn link cancel_form">Cancel</a>

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/ForgeBlog/forgeblog/templates/blog_widgets/post_form.html
----------------------------------------------------------------------
diff --git a/ForgeBlog/forgeblog/templates/blog_widgets/post_form.html b/ForgeBlog/forgeblog/templates/blog_widgets/post_form.html
index 9030e87..4790d3e 100644
--- a/ForgeBlog/forgeblog/templates/blog_widgets/post_form.html
+++ b/ForgeBlog/forgeblog/templates/blog_widgets/post_form.html
@@ -53,7 +53,7 @@
     {% endfor %}
     {% if c.user and c.user != c.user.anonymous() and widget.fields.subscribe|default and not subscribed_to_tool %}
       <label class="subscribe">
-        <input type="checkbox" checked name="subscribe">Subscribe to this blog post
+        <input type="checkbox" checked name="subscribe" class="subscribe-checkbox">Subscribe to this blog post
       </label>
     {% endif %}
     <a href="{{c.app.url}}" class="btn link cancel_form">Cancel</a>

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html b/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
index bf280f8..3afc9eb 100644
--- a/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
+++ b/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
@@ -128,7 +128,7 @@
     {{widget.display_field_by_name('submit')|safe}}
     {% if c.user and c.user != c.user.anonymous() and not ticket and not subscribed_to_tool|default %}
         <label class="subscribe">
-          <input type="checkbox" checked name="ticket_form.subscribe">Subscribe to this ticket
+          <input type="checkbox" checked name="ticket_form.subscribe" class="subscribe-checkbox">Subscribe to this ticket
         </label>
     {% endif %}
     <a href="{{c.app.url}}" class="btn link cancel_form">Cancel</a>

http://git-wip-us.apache.org/repos/asf/allura/blob/d69e4176/ForgeWiki/forgewiki/templates/wiki/page_edit.html
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/templates/wiki/page_edit.html b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
index 2b468e8..0fbadad 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_edit.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
@@ -72,7 +72,7 @@
     <input type="reset" value="Cancel">
     {% if c.user and c.user != c.user.anonymous() and not subscribed_to_tool %}
       <label class="subscribe">
-        <input type="checkbox" checked name="subscribe">Subscribe to this wiki page
+        <input type="checkbox" checked name="subscribe" class="subscribe-checkbox">Subscribe to this wiki page
       </label>
     {% endif %}
 	</div>