Remove unused files

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-11-28 18:23:19 +01:00
parent 909833c2bb
commit 6f15127cb0
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
3 changed files with 0 additions and 80 deletions

View file

@ -1,16 +0,0 @@
defmodule MobilizonWeb.FollowerView do
use MobilizonWeb, :view
alias MobilizonWeb.FollowerView
def render("index.json", %{followers: followers}) do
%{data: render_many(followers, FollowerView, "follower.json")}
end
def render("show.json", %{follower: follower}) do
%{data: render_one(follower, FollowerView, "follower.json")}
end
def render("follower.json", %{follower: follower}) do
%{id: follower.id, approved: follower.approved, score: follower.score}
end
end

View file

@ -1,41 +0,0 @@
defmodule MobilizonWeb.GroupView do
@moduledoc """
View for Groups
"""
use MobilizonWeb, :view
alias MobilizonWeb.{GroupView, ActorView}
def render("index.json", %{groups: groups}) do
%{data: render_many(groups, GroupView, "group_simple.json")}
end
def render("show.json", %{group: group}) do
%{data: render_one(group, GroupView, "group.json")}
end
def render("show_simple.json", %{group: group}) do
%{data: render_one(group, GroupView, "group_simple.json")}
end
def render("group_simple.json", %{group: group}) do
%{
id: group.id,
title: group.title,
description: group.description,
suspended: group.suspended,
url: group.url
}
end
def render("group.json", %{group: group}) do
%{
id: group.id,
title: group.title,
description: group.description,
suspended: group.suspended,
url: group.url,
members: render_many(group.members, ActorView, "actor_basic.json"),
events: render_many(group.organized_events, EventView, "event_simple.json")
}
end
end

View file

@ -1,23 +0,0 @@
defmodule MobilizonWeb.MemberView do
@moduledoc """
View for Members
"""
use MobilizonWeb, :view
alias MobilizonWeb.{MemberView, ActorView}
def render("index.json", %{members: members}) do
%{data: render_many(members, MemberView, "member.json")}
end
def render("show.json", %{member: member}) do
%{data: render_one(member, MemberView, "member.json")}
end
def render("member.json", %{member: member}) do
%{
role: member.role,
actor: render_one(member.actor, ActorView, "actor_basic.json"),
group: render_one(member.parent, ActorView, "actor_basic.json")
}
end
end