Fossil SCM
Clicking the "Shun" submenu does not shun immediately, but only takes you to the page where you can click the "shun" button.
Commit
94a93469c8b7bcac34c7f810e0f26f31bcc3b30f
Parent
cfb1341ae3d8474…
2 files changed
+1
-1
+2
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -774,11 +774,11 @@ | ||
| 774 | 774 | const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 775 | 775 | if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){ |
| 776 | 776 | style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1", |
| 777 | 777 | g.zTop, zUuid); |
| 778 | 778 | }else{ |
| 779 | - style_submenu_element("Shun","Shun", "%s/shun?uuid=%s&add=1", | |
| 779 | + style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun", | |
| 780 | 780 | g.zTop, zUuid); |
| 781 | 781 | } |
| 782 | 782 | } |
| 783 | 783 | style_header("Artifact Content"); |
| 784 | 784 | @ <h2>Content Of:</h2> |
| 785 | 785 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -774,11 +774,11 @@ | |
| 774 | const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 775 | if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){ |
| 776 | style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1", |
| 777 | g.zTop, zUuid); |
| 778 | }else{ |
| 779 | style_submenu_element("Shun","Shun", "%s/shun?uuid=%s&add=1", |
| 780 | g.zTop, zUuid); |
| 781 | } |
| 782 | } |
| 783 | style_header("Artifact Content"); |
| 784 | @ <h2>Content Of:</h2> |
| 785 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -774,11 +774,11 @@ | |
| 774 | const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 775 | if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){ |
| 776 | style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1", |
| 777 | g.zTop, zUuid); |
| 778 | }else{ |
| 779 | style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun", |
| 780 | g.zTop, zUuid); |
| 781 | } |
| 782 | } |
| 783 | style_header("Artifact Content"); |
| 784 | @ <h2>Content Of:</h2> |
| 785 |
+2
-1
| --- src/shun.c | ||
| +++ src/shun.c | ||
| @@ -109,10 +109,11 @@ | ||
| 109 | 109 | @ <i>no artifacts are shunned on this server</i> |
| 110 | 110 | } |
| 111 | 111 | db_finalize(&q); |
| 112 | 112 | @ </blockquote> |
| 113 | 113 | @ <hr> |
| 114 | + @ <a name="addshun"></a> | |
| 114 | 115 | @ <p>To shun an artifact, enter its UUID in the |
| 115 | 116 | @ following box and press the "Shun" button. This will cause the artifact |
| 116 | 117 | @ to be removed from the repository and will prevent the artifact from being |
| 117 | 118 | @ readded to the repository by subsequent sync operation.</p> |
| 118 | 119 | @ |
| @@ -123,11 +124,11 @@ | ||
| 123 | 124 | @ of the repository. Do not shun artifacts merely to remove them from |
| 124 | 125 | @ sight - set the "hidden" tag on such artifacts instead.</p> |
| 125 | 126 | @ |
| 126 | 127 | @ <blockquote> |
| 127 | 128 | @ <form method="POST" action="%s(g.zBaseURL)/%s(g.zPath)"> |
| 128 | - @ <input type="text" name="uuid" size="50"> | |
| 129 | + @ <input type="text" name="uuid" value="%h(PD("shun",""))" size="50"> | |
| 129 | 130 | @ <input type="submit" name="add" value="Shun"> |
| 130 | 131 | @ </form> |
| 131 | 132 | @ </blockquote> |
| 132 | 133 | @ |
| 133 | 134 | @ <p>Enter the UUID of a previous shunned artifact to cause it to be |
| 134 | 135 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -109,10 +109,11 @@ | |
| 109 | @ <i>no artifacts are shunned on this server</i> |
| 110 | } |
| 111 | db_finalize(&q); |
| 112 | @ </blockquote> |
| 113 | @ <hr> |
| 114 | @ <p>To shun an artifact, enter its UUID in the |
| 115 | @ following box and press the "Shun" button. This will cause the artifact |
| 116 | @ to be removed from the repository and will prevent the artifact from being |
| 117 | @ readded to the repository by subsequent sync operation.</p> |
| 118 | @ |
| @@ -123,11 +124,11 @@ | |
| 123 | @ of the repository. Do not shun artifacts merely to remove them from |
| 124 | @ sight - set the "hidden" tag on such artifacts instead.</p> |
| 125 | @ |
| 126 | @ <blockquote> |
| 127 | @ <form method="POST" action="%s(g.zBaseURL)/%s(g.zPath)"> |
| 128 | @ <input type="text" name="uuid" size="50"> |
| 129 | @ <input type="submit" name="add" value="Shun"> |
| 130 | @ </form> |
| 131 | @ </blockquote> |
| 132 | @ |
| 133 | @ <p>Enter the UUID of a previous shunned artifact to cause it to be |
| 134 |
| --- src/shun.c | |
| +++ src/shun.c | |
| @@ -109,10 +109,11 @@ | |
| 109 | @ <i>no artifacts are shunned on this server</i> |
| 110 | } |
| 111 | db_finalize(&q); |
| 112 | @ </blockquote> |
| 113 | @ <hr> |
| 114 | @ <a name="addshun"></a> |
| 115 | @ <p>To shun an artifact, enter its UUID in the |
| 116 | @ following box and press the "Shun" button. This will cause the artifact |
| 117 | @ to be removed from the repository and will prevent the artifact from being |
| 118 | @ readded to the repository by subsequent sync operation.</p> |
| 119 | @ |
| @@ -123,11 +124,11 @@ | |
| 124 | @ of the repository. Do not shun artifacts merely to remove them from |
| 125 | @ sight - set the "hidden" tag on such artifacts instead.</p> |
| 126 | @ |
| 127 | @ <blockquote> |
| 128 | @ <form method="POST" action="%s(g.zBaseURL)/%s(g.zPath)"> |
| 129 | @ <input type="text" name="uuid" value="%h(PD("shun",""))" size="50"> |
| 130 | @ <input type="submit" name="add" value="Shun"> |
| 131 | @ </form> |
| 132 | @ </blockquote> |
| 133 | @ |
| 134 | @ <p>Enter the UUID of a previous shunned artifact to cause it to be |
| 135 |