A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。

29 行
714 B

# -*- coding: utf-8 -*-
"""Endpoints for the commenting subsystem."""
from flask import Blueprint, g
import rophako.model.emoticons as Emoticons
from rophako.utils import template
from rophako.settings import Config
mod = Blueprint("emoticons", __name__, url_prefix="/emoticons")
def index():
"""List the available emoticons."""
theme = Emoticons.load_theme()
smileys = []
for img in sorted(theme["map"]):
"img": img,
"triggers": theme["map"][img],
g.info["theme"] = Config.emoticons.theme
g.info["theme_name"] = theme["name"]
g.info["smileys"] = smileys
return template("emoticons/index.html")