Closed Huskydog9988 closed 1 year ago
I would probably prefer it in plain html or something like ejs rather than pug, but I like the idea! That being said, I think it should be an option or have both available somehow (e.g. appending /pretty
to the log URL).
You said your branch is currently "mainly broken" - how so?
The reason I’m using pug is so I can have a template then fill in the messages. The bot is broken in the way logs are displayed, at first it would only show as [object, Object]. Lastly I might just make the pretty
option a config var as /pretty
would have to be manually added to each log instead of just having it auto do it.
Perhaps the option could change the link that's posted? That way both options would be available, and the option would control which is the "default".
I feel introducing pug is a bit overkill, as something simple like ejs would do the same (templating) with 0 dependencies.
Should be able to template it with HTML and in-line CSS. Keeps things simple. It's just text logs, after all, no need to go crazy. v / r Robert Klebes Mobile: 571-492-8639 https://keybase.io/sporkwitch https://www.linkedin.com/in/klebes
On August 7, 2019 11:53:16 AM EDT, Miikka notifications@github.com wrote:
Perhaps the option could change the link that's posted? That way both options would be available, and the option would control which is the "default".
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/Dragory/modmailbot/issues/330#issuecomment-519158397
It is just text logs but the current version is very tedious to read. Also I’ll look into using ejs instead.
I'm working on making it looks like the Discord interface. Not sure if I'm going to release it though.
That was and is my goal, I just haven't gotten to fixing my code and adding the css.
What I'm proposing is a better website UI design. The goal is to have the logs to look like a discord chat. Ex:
I've already begun work on this with my branch here. This is mainly broken and any ideas as to how to fix this would be greatly appreciated.
(BTW this new version does use pug as its method to the logs.)