Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
9ffd6c26
Commit
9ffd6c26
authored
Dec 13, 2016
by
Dave Cridland
Committed by
GitHub
Dec 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #640 from wrooot/master
OF-1182 remove Release News, expand Blog
parents
bd4d07bc
3836c3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
index.jsp
src/web/index.jsp
+2
-18
No files found.
src/web/index.jsp
View file @
9ffd6c26
...
...
@@ -69,9 +69,7 @@
<%!
long
lastRSSFetch
=
0
;
SyndFeed
lastBlogFeed
=
null
;
SyndFeed
lastReleaseFeed
=
null
;
String
blogFeedRSS
=
"https://community.igniterealtime.org/blogs/ignite/feeds/posts"
;
String
releaseFeedRSS
=
"https://community.igniterealtime.org/community/feeds/messages?community=2017"
;
%>
<%
// Get parameters //
...
...
@@ -375,14 +373,13 @@
<a
href=
"
<%=
blogFeedRSS
%>
"
class=
"jive-feed-icon"
><img
src=
"images/feed-icon-16x16.gif"
alt=
""
style=
"border:0;"
/></a>
<h4><fmt:message
key=
"index.cs_blog"
/></h4>
<%
long
nowTime
=
System
.
currentTimeMillis
();
if
(
lastBlogFeed
==
null
||
lastReleaseFeed
==
null
||
nowTime
-
lastRSSFetch
>
21600000
)
{
if
(
lastBlogFeed
==
null
||
nowTime
-
lastRSSFetch
>
21600000
)
{
FeedFetcherCache
feedInfoCache
=
HashMapFeedInfoCache
.
getInstance
();
FeedFetcher
feedFetcher
=
new
HttpClientWithTimeoutFeedFetcher
(
feedInfoCache
);
try
{
lastBlogFeed
=
feedFetcher
.
retrieveFeed
(
new
URL
(
blogFeedRSS
));
lastReleaseFeed
=
feedFetcher
.
retrieveFeed
(
new
URL
(
releaseFeedRSS
));
lastRSSFetch
=
nowTime
;
}
...
...
@@ -395,7 +392,7 @@
if
(
lastBlogFeed
!=
null
&&
!
lastBlogFeed
.
getEntries
().
isEmpty
())
{
List
entries
=
lastBlogFeed
.
getEntries
();
for
(
int
i
=
0
;
i
<
entries
.
size
()
&&
i
<
3
;
i
++)
{
for
(
int
i
=
0
;
i
<
entries
.
size
()
&&
i
<
7
;
i
++)
{
SyndEntry
entry
=
(
SyndEntry
)
entries
.
get
(
i
);
%>
<h5><a
href=
"
<%=
entry
.
getLink
()
%>
"
target=
"_blank"
><%=
entry
.
getTitle
()
%></a>
,
<span
class=
"jive-blog-date"
><%=
JiveGlobals
.
formatDate
(
entry
.
getPublishedDate
())
%></span></h5>
...
...
@@ -405,19 +402,6 @@
<fmt:message
key=
"index.cs_blog.unavailable"
/>
<%
}
%><div
class=
"jive-bottom-line"
></div><%
if
(
lastReleaseFeed
!=
null
&&
!
lastReleaseFeed
.
getEntries
().
isEmpty
())
{
List
entries
=
lastReleaseFeed
.
getEntries
();
for
(
int
i
=
0
;
i
<
entries
.
size
()
&&
i
<
3
;
i
++)
{
SyndEntry
entry
=
(
SyndEntry
)
entries
.
get
(
i
);
%>
<h5><a
href=
"
<%=
entry
.
getLink
()
%>
"
target=
"_blank"
><%=
entry
.
getTitle
()
%></a>
,
<span
class=
"jive-blog-date"
><%=
JiveGlobals
.
formatDate
(
entry
.
getPublishedDate
())
%></span></h5>
<%
}
}
else
{
%>
<fmt:message
key=
"index.cs_blog.unavailable"
/>
<%
}
%>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment