Fossil SCM

Clicking the "Shun" submenu does not shun immediately, but only takes you to the page where you can click the "shun" button.

drh 2008-06-02 15:01 trunk
Commit 94a93469c8b7bcac34c7f810e0f26f31bcc3b30f
2 files changed +1 -1 +2 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -774,11 +774,11 @@
774774
const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid);
775775
if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){
776776
style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1",
777777
g.zTop, zUuid);
778778
}else{
779
- style_submenu_element("Shun","Shun", "%s/shun?uuid=%s&add=1",
779
+ style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun",
780780
g.zTop, zUuid);
781781
}
782782
}
783783
style_header("Artifact Content");
784784
@ <h2>Content Of:</h2>
785785
--- 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 @@
109109
@ <i>no artifacts are shunned on this server</i>
110110
}
111111
db_finalize(&q);
112112
@ </blockquote>
113113
@ <hr>
114
+ @ <a name="addshun"></a>
114115
@ <p>To shun an artifact, enter its UUID in the
115116
@ following box and press the "Shun" button. This will cause the artifact
116117
@ to be removed from the repository and will prevent the artifact from being
117118
@ readded to the repository by subsequent sync operation.</p>
118119
@
@@ -123,11 +124,11 @@
123124
@ of the repository. Do not shun artifacts merely to remove them from
124125
@ sight - set the "hidden" tag on such artifacts instead.</p>
125126
@
126127
@ <blockquote>
127128
@ <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">
129130
@ <input type="submit" name="add" value="Shun">
130131
@ </form>
131132
@ </blockquote>
132133
@
133134
@ <p>Enter the UUID of a previous shunned artifact to cause it to be
134135
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button