Commit bae85fa876c89bcde79011f2a70a7a0747b09efd
1 parent
4b91ffca
Exists in
master
and in
4 other branches
Wording improvements in the zero_authorized_projects template
I've reworded the first sentence to say "You don't have access to any projects", which I think sounds more natural. I've also used the "pluralize" ActionView helper for the user's projects_limit, so that it still looks good when it says "You can create up to 1 project.". Finally, I've tweaked the structure of the final sentence a little bit to make it sound a bit better.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/views/dashboard/_zero_authorized_projects.html.haml
1 | %h3.nothing_here_message | 1 | %h3.nothing_here_message |
2 | - There are no projects you have access to. | 2 | + You don't have access to any projects. |
3 | %br | 3 | %br |
4 | - if current_user.can_create_project? | 4 | - if current_user.can_create_project? |
5 | You can create up to | 5 | You can create up to |
6 | - = current_user.projects_limit | ||
7 | - projects. Click on button below to add a new one | 6 | + = pluralize(current_user.projects_limit, "project") + "." |
7 | + Click on the button below to add a new one | ||
8 | .link_holder | 8 | .link_holder |
9 | = link_to new_project_path, class: "btn btn-primary" do | 9 | = link_to new_project_path, class: "btn btn-primary" do |
10 | New Project » | 10 | New Project » |
11 | - else | 11 | - else |
12 | - If you will be added to project - it will be displayed here | 12 | + If you are added to a project, it will be displayed here |