|
@@ -101,6 +101,9 @@ These are the major functional buttons*/
|
|
|
font-size: .8em;
|
|
|
text-align: right;
|
|
|
}
|
|
|
+#trash {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
</style>
|
|
|
|
|
|
<script>
|
|
@@ -197,6 +200,7 @@ These are the major functional buttons*/
|
|
|
document.getElementById("attribution").style.display = "block";
|
|
|
document.getElementById("toggleDisplayMode").style.display = "inline-block";
|
|
|
document.getElementById("publishRule").style.display = "none";
|
|
|
+ document.getElementById("trash").style.display = "inline-block";
|
|
|
document.getElementById("title").innerHTML =
|
|
|
document.getElementById("communityname").innerHTML + " / CommunityRule";
|
|
|
displayMode = true;
|
|
@@ -208,6 +212,7 @@ These are the major functional buttons*/
|
|
|
document.getElementById("attribution").style.display = "none";
|
|
|
document.getElementById("toggleDisplayMode").style.display = "none";
|
|
|
document.getElementById("publishRule").style.display = "inline-block";
|
|
|
+ document.getElementById("trash").style.display = "none";
|
|
|
displayMode = false;
|
|
|
}
|
|
|
}
|
|
@@ -307,6 +312,16 @@ These are the major functional buttons*/
|
|
|
document.title = rule['communityname'] + " / CommunityRule";
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ // deleteRule()
|
|
|
+ // A temporary placeholder that sends an email requesting rule deletion
|
|
|
+ function deleteRule() {
|
|
|
+ var urlParamz = new URLSearchParams(window.location.search);
|
|
|
+ var rID = urlParamz.get('r');
|
|
|
+ window.open("mailto:medlab@colorado.edu?subject=Delete Rule request ("
|
|
|
+ + rID + ")&body=Please explain your rationale:\n");
|
|
|
+ }
|
|
|
+
|
|
|
// END Publish tools
|
|
|
|
|
|
// FINALLY, Page loading
|
|
@@ -523,5 +538,8 @@ Created with [CommunityRule](http://communityrule.info)
|
|
|
<button class="pushButton" id="publishRule" onclick="publishRule()">Publish</button>
|
|
|
<button class="pushButton" id="toggleDisplayMode" onclick="toggleDisplayMode()">Fork</button>
|
|
|
<button class="pushButton" onclick="textOutput()">Markdown</button>
|
|
|
+ <button class="pushButton" id="trash" onclick="deleteRule()">
|
|
|
+ <img src="{% link assets/tabler_icons/trash.svg %}" title="Rule deletion request" />
|
|
|
+ </button>
|
|
|
|
|
|
</article>
|