liquid_feedback_frontend

diff app/main/lf2/_issue.lua @ 218:7ea52c710503

Some little changes for next generation frontend
author bsw
date Sun Mar 13 16:53:33 2011 +0100 (2011-03-13)
parents 73dbc9e2bfd4
children
line diff
     1.1 --- a/app/main/lf2/_issue.lua	Sat Mar 12 19:22:50 2011 +0100
     1.2 +++ b/app/main/lf2/_issue.lua	Sun Mar 13 16:53:33 2011 +0100
     1.3 @@ -74,8 +74,8 @@
     1.4    end }
     1.5  
     1.6    if #trustees > 1 then
     1.7 -    ui.box_row{ class = "head2", content = function()
     1.8 -      ui.box_col{ class = "head left", content = function()
     1.9 +    ui.box_row{ class = "", content = function()
    1.10 +      ui.box_col{ class = "left", content = function()
    1.11          execute.view{ module = "lf2", view = "_avatars", params = { members = trustees, arrows = true, size = "small", issue_id = issue.id } }
    1.12        end }
    1.13      end }
    1.14 @@ -97,24 +97,16 @@
    1.15              routing = { default = { mode = "redirect", module = "lf2", view = "issue", id = issue.id } }
    1.16            }
    1.17          end
    1.18 -        if #trustees == 1 then
    1.19 -          ui.link{
    1.20 -            text = _"Set issue delegation",
    1.21 -            module = "lf2", view = "delegation", params = { issue_id = issue.id }
    1.22 -          }    
    1.23 -        end
    1.24          slot.put(" · ")
    1.25 -        if not issue.closed and not issue.fully_frozen then
    1.26 -          if trustees[1].scope_out == "issue" then
    1.27 -            text = _"Change or revoke issue delegation"
    1.28 -          else
    1.29 -            text = _"Set issue delegation"
    1.30 -          end  
    1.31 -          ui.link{
    1.32 -            text = text,
    1.33 -            module = "lf2", view = "delegation", params = { issue_id = issue.id }
    1.34 -          }    
    1.35 -        end
    1.36 +        if trustees[1].scope_out == "issue" then
    1.37 +          text = _"Change or revoke issue delegation"
    1.38 +        else
    1.39 +          text = _"Set issue delegation"
    1.40 +        end  
    1.41 +        ui.link{
    1.42 +          text = text,
    1.43 +          module = "lf2", view = "delegation", params = { issue_id = issue.id }
    1.44 +        }    
    1.45        end }
    1.46  
    1.47      end }
    1.48 @@ -125,7 +117,7 @@
    1.49        ui.link{
    1.50          module = "lf2", view = "index", id = issue.area.unit_id,
    1.51          params = { phase = issue.phase },
    1.52 -        text = issue.area.unit.name
    1.53 +        text = issue.area.unit.name_with_path
    1.54        }
    1.55      end }
    1.56      ui.box_col{ class = "policy_name right", content = function()

Impressum / About Us