liquid_feedback_frontend
view app/main/member/settings_applications.lua @ 1562:fce3409bc9b0
Removed not functional image icon from wysiwyg toolbar
| author | bsw | 
|---|---|
| date | Tue Nov 10 20:59:34 2020 +0100 (2020-11-10) | 
| parents | 32cc544d5a5b | 
| children | afff8198bd98 | 
 line source
     1 ui.titleMember(_"Connected applications")
     3 ui.grid{ content = function()
     4   ui.cell_main{ content = function()
     6     ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
     7       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
     8         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Connected applications" }
     9       end }
    11       local applications = MemberApplication:by_member_id(app.session.member_id)
    13       for i, application in ipairs(applications) do
    14         ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
    15           if application.system_application_id then
    16             ui.heading{ level = 2, content = application.system_application.name }
    17           else
    18             ui.heading{ level = 2, content = application.domain }
    19           end
    20           local scopes = {}
    21           for scope in string.gmatch(application.scope, "[^ ]+") do
    22             scopes[#scopes+1] = util.scope_name(scope)
    23           end
    24           local scopes_string = table.concat(scopes, ", ")
    25           ui.container{ content = scopes_string }
    26           ui.link{ content = _"Remove application", module = "member", action = "remove_application", id = application.id }
    27         end }
    28       end
    30     end }
    31   end }
    33   ui.cell_sidebar{ content = function()
    34     execute.view {
    35       module = "member", view = "_sidebar_whatcanido", params = {
    36         member = app.session.member
    37       }
    38     }
    39   end }
    41 end }
