Overview
SHA1 Hash: | 94a93469c8b7bcac34c7f810e0f26f31bcc3b30f |
---|---|
Date: | 2008-06-02 15:01:53 |
User: | drh |
Comment: | Clicking the "Shun" submenu does not shun immediately, but only takes you to the page where you can click the "shun" button. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/info.c from [ba88baf4c2] to [de0ea7fc4a].
@@ -774,11 +774,11 @@ const char *zUuid = db_text("", "SELECT uuid FROM blob WHERE rid=%d", rid); if( db_exists("SELECT 1 FROM shun WHERE uuid='%s'", zUuid) ){ style_submenu_element("Unshun","Unshun", "%s/shun?uuid=%s&sub=1", g.zTop, zUuid); }else{ - style_submenu_element("Shun","Shun", "%s/shun?uuid=%s&add=1", + style_submenu_element("Shun","Shun", "%s/shun?shun=%s#addshun", g.zTop, zUuid); } } style_header("Artifact Content"); @ <h2>Content Of:</h2>
Modified src/shun.c from [935c21e13e] to [e38b6e743d].
@@ -109,10 +109,11 @@ @ <i>no artifacts are shunned on this server</i> } db_finalize(&q); @ </blockquote> @ <hr> + @ <a name="addshun"></a> @ <p>To shun an artifact, enter its UUID in the @ following box and press the "Shun" button. This will cause the artifact @ to be removed from the repository and will prevent the artifact from being @ readded to the repository by subsequent sync operation.</p> @ @@ -123,11 +124,11 @@ @ of the repository. Do not shun artifacts merely to remove them from @ sight - set the "hidden" tag on such artifacts instead.</p> @ @ <blockquote> @ <form method="POST" action="%s(g.zBaseURL)/%s(g.zPath)"> - @ <input type="text" name="uuid" size="50"> + @ <input type="text" name="uuid" value="%h(PD("shun",""))" size="50"> @ <input type="submit" name="add" value="Shun"> @ </form> @ </blockquote> @ @ <p>Enter the UUID of a previous shunned artifact to cause it to be