Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
project-covid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MOREAU Elise
project-covid
Commits
f661cfa6
Commit
f661cfa6
authored
4 years ago
by
Moreau Elise
Browse files
Options
Downloads
Patches
Plain Diff
create view to messenger
parent
8d76f218
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/message/create_message.twig
+0
-1
0 additions, 1 deletion
templates/message/create_message.twig
templates/message/list_messages.twig
+0
-1
0 additions, 1 deletion
templates/message/list_messages.twig
templates/message/messenger.twig
+42
-0
42 additions, 0 deletions
templates/message/messenger.twig
with
42 additions
and
2 deletions
templates/message/create_message.twig
deleted
100644 → 0
+
0
−
1
View file @
8d76f218
{%
extends
'common/layout.twig'
%}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/message/list_messages.twig
deleted
100644 → 0
+
0
−
1
View file @
8d76f218
{%
extends
'common/layout.twig'
%}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/message/messenger.twig
0 → 100644
+
42
−
0
View file @
f661cfa6
{%
extends
'common/layout.twig'
%}
{%
block
content
%}
<div
class=
"ui right sidebar"
id=
"list_tchat"
>
</div>
<div
class=
"current_tchat"
>
<h2>
{{
group.name
}}
</h2>
<div
class=
"list_members"
>
{%
for
user
in
group.users
%}
<a
class=
"ui image label"
href=
"/users/
{{
user.getId
}}
"
>
<img
src=
"/assets/img/default-avatar.png"
>
{{
user.username
}}
</a>
{%
endfor
%}
</div>
</div>
<div
class=
"ui comments"
id=
"current_messages"
>
{%
for
message
in
messages
%}
<div
class=
"comment"
>
<a
class=
"avatar"
>
<img
src=
"/assets/img/default-avatar.png"
>
</a>
<div
class=
"ui content"
>
<a
class=
"author"
>
{{
message.transmitter.username
}}
</a>
<div
class=
"metadata"
>
<span
class=
"date"
>
{{
message.date
}}
</span>
</div>
<div
class=
"text"
>
{{
message.body
}}
</div>
</div>
</div>
{%
endfor
%}
</div>
<div
class=
"reply"
>
<form
class=
"ui reply form"
action=
"/groups/
{{
group.getId
}}
/messages"
method=
"post"
>
<div
class=
"field"
>
<textarea
name=
"body"
rows=
"3"
></textarea>
</div>
<button
class=
"ui blue labeled submit icon button"
type=
"submit"
>
<i
class=
"icon edit"
></i>
Add Reply
</button>
</form>
</div>
{%
endblock
%}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment