Created
November 1, 2012 22:46
-
-
Save CarlosGabaldon/3997223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<h2>User Options</h2> | |
<% if current_user.is_system? %> | |
<div id='system_user_links'> | |
<ul> | |
<li>System</li> | |
<li><%= link_to 'Setup user', new_system_user_path %></li> | |
<li><%= link_to 'Search users', system_users_path %></li> | |
<li><%= link_to 'System config', edit_system_system_config_path %></li> | |
</ul> | |
</div> | |
<% end %> | |
<% if current_user.is_admin? %> | |
<div id='admin_user_links'> | |
<ul> | |
<li>Admin</li> | |
<li><%= link_to 'Setup merchant', new_admin_merchant_path %></li> | |
<li><%= link_to 'Search merchants', admin_merchants_path %></li> | |
<li><%= link_to 'Merchant Validations', admin_merchant_validations_path %></li> | |
<li><%= link_to 'Offer Validations', admin_offer_validations_path %></li> | |
<% if current_user.features.enabled? :copywriting %> | |
<li><%= link_to 'Copy Writing', admin_copy_writing_index_path %></li> | |
<li><%= link_to 'Copy Clearance', admin_copy_clearances_path %></li> | |
<li><%= link_to 'Copy Approval', admin_copy_approvals_path %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<% if current_user.is_sales? %> | |
<div id='sales_user_links'> | |
<ul> | |
<li>Sales</li> | |
<li><%= link_to 'Setup merchant', new_sales_merchant_path %></li> | |
<li><%= link_to 'Search merchants', sales_path %></li> | |
</ul> | |
</div> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment