|
204 | 204 | </button> |
205 | 205 |
|
206 | 206 | <div x-show="settingsOpen" x-collapse> |
| 207 | + <%# Account & Team %> |
| 208 | + <div class="px-4 pt-2 pb-1"> |
| 209 | + <span class="text-xs text-gray-500 font-medium">Account</span> |
| 210 | + </div> |
| 211 | + |
207 | 212 | <%= link_to site_admin_users_path, id: "tour-users", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{current_page?(site_admin_users_path) ? 'bg-gray-700' : ''}" do %> |
208 | 213 | <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
209 | 214 | <path d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z"></path> |
|
225 | 230 | <span>Billing</span> |
226 | 231 | <% end %> |
227 | 232 |
|
228 | | - <%= link_to site_admin_website_settings_tab_path('general'), id: "tour-general-settings", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{params[:tab] == 'general' || (request.path.start_with?('/site_admin/website') && !['appearance', 'seo', 'navigation', 'notifications', 'social'].include?(params[:tab])) ? 'bg-gray-700' : ''}" do %> |
| 233 | + <%# Website Configuration %> |
| 234 | + <div class="px-4 pt-4 pb-1"> |
| 235 | + <span class="text-xs text-gray-500 font-medium">Website</span> |
| 236 | + </div> |
| 237 | + |
| 238 | + <%= link_to site_admin_website_settings_tab_path('general'), id: "tour-general-settings", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{params[:tab] == 'general' || (request.path.start_with?('/site_admin/website') && !['appearance', 'seo', 'navigation', 'notifications', 'social', 'search'].include?(params[:tab])) ? 'bg-gray-700' : ''}" do %> |
229 | 239 | <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
230 | 240 | <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"></path> |
231 | 241 | </svg> |
232 | | - <span>General Settings</span> |
| 242 | + <span>General</span> |
233 | 243 | <% end %> |
234 | 244 |
|
235 | | - <%= link_to site_admin_website_settings_tab_path('notifications'), id: "tour-notifications", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{params[:tab] == 'notifications' ? 'bg-gray-700' : ''}" do %> |
| 245 | + <%= link_to site_admin_domain_path, id: "tour-domain", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{current_page?(site_admin_domain_path) ? 'bg-gray-700' : ''}" do %> |
236 | 246 | <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
237 | | - <path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"></path> |
| 247 | + <path fill-rule="evenodd" d="M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z" clip-rule="evenodd"></path> |
238 | 248 | </svg> |
239 | | - <span>Notifications</span> |
| 249 | + <span>Domain</span> |
240 | 250 | <% end %> |
241 | 251 |
|
242 | 252 | <%= link_to site_admin_website_settings_tab_path('social'), id: "tour-social", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{params[:tab] == 'social' ? 'bg-gray-700' : ''}" do %> |
|
246 | 256 | <span>Social Links</span> |
247 | 257 | <% end %> |
248 | 258 |
|
249 | | - <%= link_to site_admin_domain_path, id: "tour-domain", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{current_page?(site_admin_domain_path) ? 'bg-gray-700' : ''}" do %> |
| 259 | + <%= link_to site_admin_website_settings_tab_path('notifications'), id: "tour-notifications", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{params[:tab] == 'notifications' ? 'bg-gray-700' : ''}" do %> |
250 | 260 | <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
251 | | - <path fill-rule="evenodd" d="M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z" clip-rule="evenodd"></path> |
| 261 | + <path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"></path> |
252 | 262 | </svg> |
253 | | - <span>Domain</span> |
| 263 | + <span>Notifications</span> |
254 | 264 | <% end %> |
255 | 265 |
|
256 | | - <%= link_to site_admin_onboarding_path, id: "tour-onboarding", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/onboarding') ? 'bg-gray-700' : ''}" do %> |
257 | | - <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
258 | | - <path fill-rule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path> |
259 | | - </svg> |
260 | | - <span>Setup Wizard</span> |
261 | | - <% end %> |
| 266 | + <%# System %> |
| 267 | + <div class="px-4 pt-4 pb-1"> |
| 268 | + <span class="text-xs text-gray-500 font-medium">System</span> |
| 269 | + </div> |
262 | 270 |
|
263 | 271 | <%= link_to site_admin_storage_stats_path, id: "tour-storage", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/storage_stats') ? 'bg-gray-700' : ''}" do %> |
264 | 272 | <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
265 | 273 | <path d="M3 12v3c0 1.657 3.134 3 7 3s7-1.343 7-3v-3c0 1.657-3.134 3-7 3s-7-1.343-7-3z"></path> |
266 | 274 | <path d="M3 7v3c0 1.657 3.134 3 7 3s7-1.343 7-3V7c0 1.657-3.134 3-7 3S3 8.657 3 7z"></path> |
267 | 275 | <path d="M17 5c0 1.657-3.134 3-7 3S3 6.657 3 5s3.134-3 7-3 7 1.343 7 3z"></path> |
268 | 276 | </svg> |
269 | | - <span>Storage Stats</span> |
| 277 | + <span>Storage</span> |
| 278 | + <% end %> |
| 279 | + |
| 280 | + <%= link_to site_admin_onboarding_path, id: "tour-onboarding", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/onboarding') ? 'bg-gray-700' : ''}" do %> |
| 281 | + <svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20"> |
| 282 | + <path fill-rule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path> |
| 283 | + </svg> |
| 284 | + <span>Setup Wizard</span> |
270 | 285 | <% end %> |
271 | 286 |
|
272 | 287 | <%= link_to site_admin_support_tickets_path, id: "tour-support", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/support_tickets') ? 'bg-gray-700' : ''}" do %> |
|
0 commit comments