2023-06-15 01:41:54 +07:00
|
|
|
module BasicController
|
|
|
|
|
|
|
|
using Genie, Genie.Renderer, Genie.Renderer.Html, Genie.Requests
|
|
|
|
using JSON3
|
|
|
|
using SearchLight
|
|
|
|
using Server.DatabaseSupport, Server.TemplateEditor
|
|
|
|
|
|
|
|
controller = "basic"
|
|
|
|
dict_layouts = Dict(
|
2023-06-24 20:44:16 +07:00
|
|
|
:landing => generate_layout_html("main",controller,"landing",css=["landing"],libraries=["Leaflet"]),
|
2023-06-24 04:39:41 +07:00
|
|
|
:manifesto => generate_layout_html("main",controller,"manifesto"),
|
2023-06-24 20:44:16 +07:00
|
|
|
:join_us => generate_layout_html("main",controller,"join_us",libraries=["Leaflet"]),
|
|
|
|
:groups => generate_layout_html("main",controller,"groups",libraries=["Leaflet"]),
|
|
|
|
:cooperatives => generate_layout_html("main",controller,"cooperatives",libraries=["Leaflet"]),
|
|
|
|
:communities => generate_layout_html("main",controller,"communities",libraries=["Leaflet"]),
|
2023-06-15 01:41:54 +07:00
|
|
|
)
|
|
|
|
|
|
|
|
#---General-----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
function landing()
|
|
|
|
html(:basic,:landing, layout = dict_layouts[:landing], context = @__MODULE__,
|
2023-06-24 21:49:33 +07:00
|
|
|
title = "LibSoc - A Global Network of Libertarian Socialists",
|
2023-06-15 01:41:54 +07:00
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2023-06-24 04:39:41 +07:00
|
|
|
function manifesto()
|
|
|
|
html(:basic,:manifesto, layout = dict_layouts[:manifesto], context = @__MODULE__,
|
|
|
|
title = "LibSoc - Manifesto",
|
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
function join_us()
|
|
|
|
html(:basic,:join_us, layout = dict_layouts[:join_us], context = @__MODULE__,
|
2023-06-24 21:49:33 +07:00
|
|
|
title = "LibSoc - Join Us",
|
2023-06-24 04:39:41 +07:00
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
function groups()
|
|
|
|
html(:basic,:groups, layout = dict_layouts[:groups], context = @__MODULE__,
|
|
|
|
title = "LibSoc - Groups",
|
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
function cooperatives()
|
|
|
|
html(:basic,:cooperatives, layout = dict_layouts[:cooperatives], context = @__MODULE__,
|
|
|
|
title = "LibSoc - Cooperatives",
|
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
function communities()
|
|
|
|
html(:basic,:communities, layout = dict_layouts[:communities], context = @__MODULE__,
|
|
|
|
title = "LibSoc - Communities",
|
|
|
|
description = ""
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2023-06-15 01:41:54 +07:00
|
|
|
|
|
|
|
end
|