liquid_feedback_frontend

diff app/main/initiative/_list_element.lua @ 312:5e6bdf07e3a1

Some color and positioning changes again...
author bsw
date Mon Feb 27 16:19:11 2012 +0100 (2012-02-27)
parents 44f9a09ea51c
children 9c639a2f3262
line diff
     1.1 --- a/app/main/initiative/_list_element.lua	Mon Feb 27 16:18:56 2012 +0100
     1.2 +++ b/app/main/initiative/_list_element.lua	Mon Feb 27 16:19:11 2012 +0100
     1.3 @@ -37,7 +37,7 @@
     1.4              },
     1.5  
     1.6              {
     1.7 -              field_attr = { style = "width: 110px;"},
     1.8 +              field_attr = { style = "width: 100px;"},
     1.9                content = function()
    1.10                  if initiative.issue.fully_frozen and initiative.issue.closed then
    1.11                    if initiative.issue.ranks_available then 
    1.12 @@ -74,7 +74,41 @@
    1.13                  end
    1.14                end
    1.15              },
    1.16 +            {
    1.17 +              field_attr = { style = "width: 24px;" },
    1.18 +              content = function()
    1.19 +                if initiative.is_initiator then
    1.20 +                  slot.put(" ")
    1.21 +                  local label = _"You are initiator of this initiative"
    1.22 +                  ui.image{
    1.23 +                    attr = { alt = label, title = label },
    1.24 +                    static = "icons/16/user_edit.png"
    1.25 +                  }
    1.26 +                elseif initiative.is_supporter then
    1.27 +                  slot.put(" ")
    1.28 +                  local label = _"You are supporter of this initiative"
    1.29 +                  ui.image{
    1.30 +                    attr = { alt = label, title = label },
    1.31 +                    static = "icons/16/thumb_up_green.png"
    1.32 +                  }
    1.33 +                elseif initiative.is_potential_supporter then
    1.34 +                  slot.put(" ")
    1.35 +                  local label = _"You are potentially supporter of this initiative"
    1.36 +                  ui.image{
    1.37 +                    attr = { alt = label, title = label },
    1.38 +                    static = "icons/16/thumb_up.png"
    1.39 +                  }
    1.40 +                elseif initiative.is_supporter_via_delegation then
    1.41 +                  slot.put(" ")
    1.42 +                  local label = _"You are supporter of this initiative via delegation"
    1.43 +                  ui.image{
    1.44 +                    attr = { alt = label, title = label },
    1.45 +                    static = "icons/16/thumb_up_green.png"
    1.46 +                  }
    1.47 +                end
    1.48      
    1.49 +              end
    1.50 +            },
    1.51              {
    1.52                content = function()
    1.53                  local link_class = "initiative_link"
    1.54 @@ -111,33 +145,6 @@
    1.55                    params  = params,
    1.56                  }
    1.57                    
    1.58 -                if initiative.is_supporter then
    1.59 -                  slot.put(" ")
    1.60 -                  local label = _"You are supporter of this initiative"
    1.61 -                  ui.image{
    1.62 -                    attr = { alt = label, title = label },
    1.63 -                    static = "icons/16/thumb_up_green.png"
    1.64 -                  }
    1.65 -                end
    1.66 -                
    1.67 -                if initiative.is_supporter_via_delegation then
    1.68 -                  slot.put(" ")
    1.69 -                  local label = _"You are supporter of this initiative via delegation"
    1.70 -                  ui.image{
    1.71 -                    attr = { alt = label, title = label },
    1.72 -                    static = "icons/16/thumb_up_green.png"
    1.73 -                  }
    1.74 -                end
    1.75 -    
    1.76 -                if initiative.is_initiator then
    1.77 -                  slot.put(" ")
    1.78 -                  local label = _"You are initiator of this initiative"
    1.79 -                  ui.image{
    1.80 -                    attr = { alt = label, title = label },
    1.81 -                    static = "icons/16/user_edit.png"
    1.82 -                  }
    1.83 -                end
    1.84 -        
    1.85                end
    1.86              }
    1.87            }

Impressum / About Us