rosa-build/app/views/private_users/index.html.haml

49 lines
2.1 KiB
Plaintext
Raw Normal View History

.block
.secondary-navigation
%ul.wat-cf
%li.first= link_to t("layout.personal_repositories.show"), personal_repository_path(current_user.personal_repository)
%li= link_to t("layout.personal_repositories.settings"), settings_personal_repository_path(current_user.personal_repository)
%li.active= link_to t("layout.personal_repositories.private_users"), platform_private_users_path(current_user.personal_platform) if current_user.personal_platform.hidden?
.content
.inner
%p
%b
= t("activerecord.attributes.platform.name")
\:
= @platform.name
%p
%b
= t("activerecord.attributes.repository.platform")
\:
= link_to @platform.name, platform_path(@platform)
- if @urpmi_list
= render 'shared/urpmi_list', :urpmi_commands => @urpmi_list
.wat-cf
=# link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), platform_repository_path(@platform, @repository), :method => "delete", :class => "button", :confirm => t("layout.repositories.confirm_delete")
%br
.inner
=t('layout.private_users.warning_message')
.block
.secondary-navigation
%ul.wat-cf
%li.first.active= link_to t("layout.private_users.list"), platform_private_users_path(@platform)
%li= link_to t("layout.private_users.new"), platform_private_users_path(@platform), :method => :post if PrivateUser.can_generate_more?(current_user.id, @platform.id)
.content
%h2.title
= t("layout.private_users.list_header")
.inner
%table.table
%tr
%th.first= t("activerecord.attributes.private_user.login")
%th.last  
- @private_users.each do |private_user|
%tr{:class => cycle("odd", "even")}
%td
= private_user.login
%td.last
#{link_to t("layout.private_users.regenerate_btn"), platform_private_users_path(@platform), :method => :post, :confirm => t("layout.private_users.confirm_regenerate")}
.actions-bar.wat-cf
.actions
= will_paginate @private_users