OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
News
Oliver Günther8fd77596985d
diff --git a/spec/components/previews/news_preview.rb b/spec/components/previews/news_preview.rbnew file mode 100644index 00000000000..80d80713465--- /dev/null+++ b/spec/components/previews/news_preview.rb@@ -0,0 +1,6 @@+# @logical_path OpenProject+class NewsPreview < Lookbook::Preview+ def default; end++ def detailed_view; end+enddiff --git a/spec/components/previews/news_preview/default.html.erb b/spec/components/previews/news_preview/default.html.erbnew file mode 100644index 00000000000..bf491daddb3--- /dev/null+++ b/spec/components/previews/news_preview/default.html.erb@@ -0,0 +1,28 @@+<div class="news">+ <h3 class="news--header">+ <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">+ <a href="/news/5-important-news">More news</a>+ </h3>+ <p class="author additional-information">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>+ <a title="10/31/2018 09:15 AM" href="/projects/demo-project/activity?from=2018-10-31">3 months</a> ago+ </p>+ <div class="wiki">+ <p>+ Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.+ </p>+ </div>++ <h3 class="news--header">+ <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">+ <a href="/news/4-terrible-news">News</a>+ </h3>+ <p class="author">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>+ <a title="06/31/2018 09:15 AM" href="">7 months</a> ago+ </p>+ <div class="wiki">+ <p>+ Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.+ Cu nam fabellas apeirian patrioque. Has cu indoctum consulatu, nam invidunt nominati id.+ </p>+ </div>+</div>diff --git a/frontend/src/global_styles/content/_news.lsg b/spec/components/previews/news_preview/detailed_view.html.erbsimilarity index 63%rename from frontend/src/global_styles/content/_news.lsgrename to spec/components/previews/news_preview/detailed_view.html.erbindex 22c1df6c235..a7c3c942eb6 100644--- a/frontend/src/global_styles/content/_news.lsg+++ b/spec/components/previews/news_preview/detailed_view.html.erb@@ -1,41 +1,3 @@-# News--## News: Overview--```-<div class="news">- <h3 class="news--header">- <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">- <a href="/news/5-important-news">More news</a>- </h3>- <p class="author additional-information">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>- <a title="10/31/2018 09:15 AM" href="/projects/demo-project/activity?from=2018-10-31">3 months</a> ago- </p>- <div class="wiki">- <p>- Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.- </p>- </div>-- <h3 class="news--header">- <img class="avatar" title="OpenProject Admin" src="https://via.placeholder.com/128" alt="Avatar">- <a href="/news/4-terrible-news">News</a>- </h3>- <p class="author">Added by <a title="User OpenProject Admin" href="">OpenProject Admin</a>- <a title="06/31/2018 09:15 AM" href="">7 months</a> ago- </p>- <div class="wiki">- <p>- Lorem ipsum dolor sit amet, choro atomorum dissentias sit ea, duo labores eleifend ei, pri habeo latine cu.- Cu nam fabellas apeirian patrioque. Has cu indoctum consulatu, nam invidunt nominati id.- </p>- </div>-</div>-```--## News: Detailed view--```<div class="toolbar-container"><div class="toolbar"><div class="title-container">@@ -98,4 +60,3 @@</p></div>-```