Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/dashboard strings #11151

Merged
merged 4 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/views/dashboard/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>

<h2>Hello, welcome to Public Lab!</h2>
<h2><%= translation('dashboard.dashboard.welcome') %></h2>

<%= translation('dashboard.dashboard.description') %>

This is your dashboard, where recent updates from other community members show up. It'll keep you updated with
recent progress, news and developments.
<br>
To get started at Public Lab, try:
<%= translation('dashboard.dashboard.get_started') %>
<br><br>
<p>
<a class="btn btn-sm btn-light" href="/questions" target="_blank">
Asking a question
<%= translation('dashboard.dashboard.ask_question') %>
z-prince marked this conversation as resolved.
Show resolved Hide resolved
</a>

<a class="btn btn-sm btn-light" href="/methods" target="_blank">
Exploring projects
<%= translation('dashboard.dashboard.explore_projects') %>
z-prince marked this conversation as resolved.
Show resolved Hide resolved
</a>
</p>
</div>
Expand Down
5 changes: 5 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ en:
your_work: "Your work"
share_work: "Share your work"
dashboard:
welcome: "Hello, welcome to Public Lab!"
description: "This is your dashboard, where recent updates from other community members show up. It'll keep you updated with recent progress, news and developments."
get_started: "To get started at Public Lab, try:"
ask_question: "Asking a question"
explore_projects: "Exploring projects"
from_blog: "From the <a href='%{url}'>Public Lab Blog</a>"
by: "by"
_node_event:
Expand Down