Render "Fetch source data" box html server-side.
Instead of calling /sources.json and rendering the "Fetch source data" box client-side in Javascript, call /sources.js so we can render the html server-side.
This commit is contained in:
@@ -445,18 +445,20 @@ div#c-posts, div#c-uploads {
|
||||
padding: 1em;
|
||||
border: 1px solid #666;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
&:not(.loading) #source-info-loading { display: none; }
|
||||
&.loading #source-info-content { display: none; }
|
||||
&.loading #fetch-data-manual { display: none; }
|
||||
|
||||
ul {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
> ul {
|
||||
display: none;
|
||||
dt, dd, li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.source-tags {
|
||||
a {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
dt, #source-info-tags li {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user