Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
S4a021 Web Backend
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charlie Darques
S4a021 Web Backend
Commits
a25e6725
Commit
a25e6725
authored
4 months ago
by
Charlie Darques
Browse files
Options
Downloads
Patches
Plain Diff
clean up et ajout menu de navigation
parent
168fda7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
WEB-INF/src/controleurs/Feed.java
+24
-19
24 additions, 19 deletions
WEB-INF/src/controleurs/Feed.java
with
24 additions
and
19 deletions
WEB-INF/src/controleurs/Feed.java
+
24
−
19
View file @
a25e6725
...
@@ -41,13 +41,14 @@ public class Feed extends HttpServlet {
...
@@ -41,13 +41,14 @@ public class Feed extends HttpServlet {
out
.
println
(
"<title>Welcome</title>"
);
out
.
println
(
"<title>Welcome</title>"
);
out
.
println
(
"<h1>Welcome "
+
login
+
"</h1>"
);
out
.
println
(
"<h1>Welcome "
+
login
+
"</h1>"
);
out
.
println
(
"<nav class=\"
option_
menu\">"
);
out
.
println
(
"<nav class=\"menu\">"
);
out
.
println
(
"<ul class=\"options_list\">"
);
out
.
println
(
"<ul class=\"options_list\">"
);
out
.
println
(
"<li class=\"option\">"
);
out
.
println
(
"<li class=\"option\">
<a href=\"#\">\uD83C\uDFE0 Home</a></li>
"
);
out
.
println
(
"<li class=\"option\"><a href=\"#\">\uD83E\uDDF5 Followed</a></li>"
);
out
.
println
(
"<
h2>Recent messages</h2
>"
);
out
.
println
(
"<
li class=\"option\"><a href=\"#\">\uD83D\uDC64 Account</a></li
>"
);
out
.
println
(
"<
h2>Discover</h2
>"
);
out
.
println
(
"<
/ul></nav
>"
);
if
(!
messages
.
isEmpty
())
{
for
(
Message
message
:
messages
)
{
for
(
Message
message
:
messages
)
{
MyThread
msgThread
=
null
;
MyThread
msgThread
=
null
;
try
{
try
{
...
@@ -58,14 +59,18 @@ public class Feed extends HttpServlet {
...
@@ -58,14 +59,18 @@ public class Feed extends HttpServlet {
out
.
println
(
"<div class=\"message\">"
);
out
.
println
(
"<div class=\"message\">"
);
out
.
println
(
"<h3 class=\"msgThread\">"
+
msgThread
.
getThreadName
()
+
"</h3>"
);
out
.
println
(
"<h3 class=\"msgThread\">"
+
msgThread
.
getThreadName
()
+
"</h3>"
);
out
.
println
(
"<p class=\"msgContent\">"
+
message
.
getContent
()
+
"</p>"
);
out
.
println
(
"<p class=\"msgContent\">"
+
message
.
getContent
()
+
"</p>"
);
out
.
println
(
"<form><button class=\"react\" type=\"submit\" value=\"Like\">"
);
out
.
println
(
"</div>"
);
out
.
println
(
"</div>"
);
}
}
}
else
{
out
.
println
(
"<p class=\"information\">You are not following any thread yet.</p>"
);
out
.
println
(
"<button><a href=\"\">Discover new threads</a></button>"
);
}
out
.
println
(
"</body>"
);
out
.
println
(
"</body>"
);
out
.
println
(
"<footer>"
);
out
.
println
(
"<footer>"
);
out
.
println
(
"Connect
é en tant que
"
+
login
);
out
.
println
(
"Connect
ed as
"
+
login
);
out
.
println
(
"</footer>"
);
out
.
println
(
"</footer>"
);
out
.
println
(
"</html>"
);
out
.
println
(
"</html>"
);
...
...
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