All log entries that do not have a user associated
are considered to be system messages.
class LogEntry(base.Object):
type = None
- system_msg = True
def __init__(self, pakfire, data):
base.Object.__init__(self, pakfire)
class CommentLogEntry(LogEntry):
type = "comment"
- system_msg = False
@property
def time(self):
class LogEntryModule(UIModule):
def render(self, entry, small=None, **args):
- if small or entry.system_msg:
+ if small or not entry.user:
template = "modules/log-entry-small.html"
else:
template = "modules/log-entry.html"