-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fixes#54 Fixes#33 build the root pages & Logout #56
Conversation
Current Code Coverage Percent of this PR:94.5 %Files having coverage below 100%
|
app/views/partial/_navbar.html.erb
Outdated
|
||
<div class="hidden md:mx-3 md:flex md:space-x-2 lg:space-x-8"> | ||
<!-- Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" --> | ||
<% if (current_user.role == "admin" || current_user.role == "owner") %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<% if (current_user.role == "admin" || current_user.role == "owner") %> | |
<% if (current_user.admin? || current_user.owner?) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
owner is yet to get defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the owner key to the role enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
app/views/dashboard/index.html.erb
Outdated
<p>Find me in app/views/dashboard/index.html.erb</p> | ||
<div class="" id="root-page"> | ||
<%= render "partial/navbar" %> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new empty line
@@ -0,0 +1,5 @@ | |||
<% if user_signed_in? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this condition.
We already have the athenticate_user! condition in the application controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
tailwind.config.js
Outdated
200: "#BDAEF7", | ||
100: "#DED6FB", | ||
}, | ||
'miru-alertgreen': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'miru-alertgreen': { | |
'miru-alert-green': { |
@aniket-k-kaushik please follow the same pattern in other as well
app/views/partial/_navbar.html.erb
Outdated
<div class="hidden md:mx-3 md:flex md:space-x-2 lg:space-x-8"> | ||
<!-- Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" --> | ||
<% if (current_user.admin?) %> | ||
<a href="#" class="border-transparent text-gray-500 hover:text-gray-700 inline-flex items-center px-1 pt-1 text-sm font-medium"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<%= request.path == '/' ? '' : '' %>
You can use this condition for active tab checking.
859f07d
to
69dc7c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Fixes #54
Images are not working.
added condition, only admin can see option for dashboard, Team, Invoice and Report
Fixes #33
Logout Function is added.