Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--awk-edits/MEL-Iconified.awk15
diff --git a/awk-edits/MEL-Iconified.awk b/awk-edits/MEL-Iconified.awk
index bbe353d..332be46 100644
--- a/awk-edits/MEL-Iconified.awk
+++ b/awk-edits/MEL-Iconified.awk
@@ -16,6 +16,17 @@ BEGIN {
melParTag("question", "dialog-question.png")
melParTag("warn", "dialog-warning.png")
melParTag("important", "dialog-important.png")
+
+ #
+ # File type
+ #
+
+ melFiletypeTag("ft-photo", "")
+ melFiletypeTag("ft-text", "")
+ melFiletypeTag("ft-zip", "")
+ melFiletypeTag("ft-movie", "")
+ melFiletypeTag("ft-markdown", "")
+ melFiletypeTag("ft-browser", "")
}
function melFlagTag(name, alt) {
@@ -25,3 +36,7 @@ function melFlagTag(name, alt) {
function melParTag(name, image) {
MEL[name, MELPARAGRAPH] = "class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">"
}
+
+function melFiletypeTag(name, repl) {
+ MEL[name, MELINSERT] = "<span class=\"file-type-icon\">" repl "</span>"
+}