浏览代码

Switch to ordered list rendering

This allows identifying items in the list from Zulip (or elsewhere) without
relying on internal data.
Mark Rousskov 5 年之前
父节点
当前提交
f632aadc0d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/notification_listing.rs

+ 2 - 2
src/notification_listing.rs

@@ -18,7 +18,7 @@ pub async fn render(db: &DbClient, user: &str) -> String {
 
     out.push_str(&format!("<h3>Pending notifications for {}</h3>", user));
 
-    out.push_str("<ul>");
+    out.push_str("<ol>");
     for notification in notifications {
         out.push_str(&format!(
             "<li><a href='{}'>{}</a></li>",
@@ -29,7 +29,7 @@ pub async fn render(db: &DbClient, user: &str) -> String {
                 .unwrap_or(&notification.origin_url),
         ));
     }
-    out.push_str("</ul>");
+    out.push_str("</ol>");
 
     out.push_str("</body>");
     out.push_str("</html>");