# HG changeset patch # User bsw # Date 1331464960 -3600 # Node ID bbd0dcb5be63c0df49e5ba2ca39d93cc11645ed2 # Parent 37a623b43e0a38ebac34a08611d811adc19e16c3 Show event timeline as homepage diff -r 37a623b43e0a -r bbd0dcb5be63 app/main/member/show_tab.lua --- a/app/main/member/show_tab.lua Sun Mar 11 12:22:29 2012 +0100 +++ b/app/main/member/show_tab.lua Sun Mar 11 12:22:40 2012 +0100 @@ -39,7 +39,8 @@ view = "_notify_level_not_set" } end - + + --[[ if config.motd_intern then tabs[#tabs+1] = { class = "yellow", @@ -50,7 +51,8 @@ params = {} } end - + --]] + local broken_delegations = Delegation:new_selector() :join("issue", nil, "issue.id = delegation.issue_id AND issue.closed ISNULL") :join("member", nil, "delegation.trustee_id = member.id") @@ -160,31 +162,6 @@ } end -local areas_selector = member:get_reference_selector("areas") -tabs[#tabs+1] = { - name = "areas", - label = _"Areas", - icon = { static = "icons/16/package.png" }, - module = "member", - view = "_area_list", - params = { areas_selector = areas_selector, member = member }, -} ---[[ -local issues_selector = Issue:new_selector() -tabs[#tabs+1] = { - name = "issues", - label = _"Issues", - icon = { static = "icons/16/folder.png" }, - module = "issue", - view = "_list", - params = { - issues_selector = issues_selector, for_member = member, - }, - link_params = { - filter_interest = (member.id ~= app.session.member_id) and "my" or nil, - }, -} ---]] if show_as_homepage then tabs[#tabs+1] = { name = "timeline", @@ -215,6 +192,7 @@ :add_order_by("coalesce(issue.fully_frozen + issue.voting_time, issue.half_frozen + issue.verification_time, issue.accepted + issue.discussion_time, issue.created + issue.admission_time) - now()") } } + tabs[#tabs+1] = { name = "closed", label = _"Closed issues", @@ -229,6 +207,16 @@ } } +local areas_selector = member:get_reference_selector("areas") +tabs[#tabs+1] = { + name = "areas", + label = _"Areas", + icon = { static = "icons/16/package.png" }, + module = "member", + view = "_area_list", + params = { areas_selector = areas_selector, member = member }, +} + if not show_as_homepage then local outgoing_delegations_selector = member:get_reference_selector("outgoing_delegations") :left_join("issue", "_member_showtab_issue", "_member_showtab_issue.id = delegation.issue_id")