# HG changeset patch
# User bsw
# Date 1340727024 -7200
# Node ID e09b70916e6a8c094c55a4a8638d7b083a7ec062
# Parent 241b168871c5db462143401c8502dc67199db097
Optical improvements
diff -r 241b168871c5 -r e09b70916e6a app/main/event/_list.lua
--- a/app/main/event/_list.lua Tue Jun 26 18:08:24 2012 +0200
+++ b/app/main/event/_list.lua Tue Jun 26 18:10:24 2012 +0200
@@ -46,32 +46,6 @@
event.issue:load_everything_for_member_id(app.session.member_id)
ui.container{ attr = { class = "event_info" }, content = function()
- if (app.session.member_id or config.public_access == "pseudonym") and event.member_id then
- if app.session.member_id then
- ui.link{
- content = function()
- execute.view{
- module = "member_image",
- view = "_show",
- params = {
- member = event.member,
- image_type = "avatar",
- show_dummy = true,
- class = "micro_avatar",
- popup_text = text
- }
- }
- end,
- module = "member", view = "show", id = event.member_id
- }
- slot.put(" ")
- end
- ui.link{
- text = event.member.name,
- module = "member", view = "show", id = event.member_id
- }
- slot.put("
")
- end
local event_name = event.event_name
local event_image
if event.event == "issue_state_changed" then
@@ -103,11 +77,39 @@
ui.tag{ attr = { class = "event_name" }, content = event_name }
slot.put("
")
ui.tag{ content = days_ago_text }
- if event.time_ago > 1 then
+--[[ if event.time_ago > 1 then
slot.put("
(")
ui.tag{ content = _("#{count} days ago", { count = event.time_ago }) }
slot.put(")")
end
+ --]]
+ if (app.session.member_id or config.public_access == "pseudonym") and event.member_id then
+ slot.put("
")
+ slot.put("
")
+ if app.session.member_id then
+ ui.link{
+ content = function()
+ execute.view{
+ module = "member_image",
+ view = "_show",
+ params = {
+ member = event.member,
+ image_type = "avatar",
+ show_dummy = true,
+ class = "micro_avatar",
+ popup_text = text
+ }
+ }
+ end,
+ module = "member", view = "show", id = event.member_id
+ }
+ slot.put(" ")
+ end
+ ui.link{
+ text = event.member.name,
+ module = "member", view = "show", id = event.member_id
+ }
+ end
end }
ui.container{ attr = { class = "issue" }, content = function()