Patch #44111 » 0003-Improve-news-list-layout.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
| 2465 | 2465 |
font-size: 0.9em; |
| 2466 | 2466 |
margin-inline-start: 10px; |
| 2467 | 2467 |
} |
| 2468 |
#news-list article.news-article {
|
|
| 2469 |
padding-block-start: 10px; |
|
| 2470 |
} |
|
| 2471 |
#news-list article.news-article header p.author, |
|
| 2472 |
#news-list article.news-article .wiki {
|
|
| 2473 |
margin-inline-start: 2rem; |
|
| 2474 |
} |
|
| 2475 |
#news-list article.news-article header h3 {
|
|
| 2476 |
margin-block-end: 2px; |
|
| 2477 |
} |
|
| 2478 |
#news-list article.news-article header p.author {
|
|
| 2479 |
margin-block-start: 2px; |
|
| 2480 |
margin-block-end: 2px; |
|
| 2481 |
color: var(--oc-gray-6); |
|
| 2482 |
} |
|
| 2483 |
#news-list article.news-article .wiki > p:first-child {
|
|
| 2484 |
margin-block-start: 2px; |
|
| 2485 |
} |
|
| 2468 | 2486 | |
| 2469 | 2487 |
/* Custom JQuery styles */ |
| 2470 | 2488 |
.ui-autocomplete, .ui-menu {
|
| app/views/news/index.html.erb | ||
|---|---|---|
| 18 | 18 | |
| 19 | 19 |
<h2><%=l(:label_news_plural)%></h2> |
| 20 | 20 | |
| 21 |
<div id="news-list"> |
|
| 21 | 22 |
<% if @newss.empty? %> |
| 22 | 23 |
<p class="nodata"><%= l(:label_no_data) %></p> |
| 23 | 24 |
<% else %> |
| ... | ... | |
| 35 | 36 |
</article> |
| 36 | 37 |
<% end %> |
| 37 | 38 |
<% end %> |
| 39 |
</div> |
|
| 38 | 40 |
<span class="pagination"><%= pagination_links_full @news_pages %></span> |
| 39 | 41 | |
| 40 | 42 |
<% other_formats_links do |f| %> |