<commit_before>- content_for :title, t("phones.show.page_title")

.row
  .span5
    %table.table.table-striped
      %tr
        %td
          %strong= t('phones.show.mac_address') + ":"
        %td
          = @phone.pretty_mac_address
      %tr
        %td
          %strong= t('phones.show.phone_model_id') + ":"
        %td
          = @phone.phone_model
          - if !@phone.phone_model.product_manual_homepage_url.blank?
            (#{link_to t('phones.show.manual'), @phone.phone_model.product_manual_homepage_url})
      - if @phone.hot_deskable == true
        %tr
          %td
            %strong= t('phones.show.hot_deskable') + ":"
          %td
            = @phone.hot_deskable
        %tr
          %td
            %strong= t('phones.show.fallback_sip_account_id') + ":"
          %td
            = @phone.fallback_sip_account

      - if defined? GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') && GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') == true
        %tr
          %td
            %strong= t('phones.show.nightly_reboot') + ":"
          %td
            = @phone.nightly_reboot == true ? t('simple_form.yes') : t('simple_form.no')          

      %tr
        %td
          %strong= t('phones.show.provisioning_key_active') + ":"
        %td
          = @phone.provisioning_key_active == true ? t('simple_form.yes') : t('simple_form.no')

      %tr{:class => (@phone.ip_address.blank? ? 'warning' : '')}
        %td
          %strong= t('phones.show.ip_address') + ":"
        %td
          - if @phone.ip_address.blank?
            %a{:href => '#', :rel => "tooltip", :title => t('phones.tool_tips.missing_ip_address'), :'data-trigger' => 'hover'}
              = '-'
          - else
            - if current_user.admin?
              = link_to @phone.ip_address, "http://#{@phone.http_user}:#{@phone.http_password}@#{@phone.ip_address}"
            - else
              = @phone.ip_address

      - if current_user.admin? && (!@phone.http_user.blank? || !@phone.http_password.blank?)
        %tr
          %td
            %strong= t('phones.show.http_user') + ":"
          %td
            = @phone.http_user

        %tr
          %td
            %strong= t('phones.show.http_password') + ":"
          %td
            = @phone.http_password

    = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone.phoneable, :child => @phone }


  .span7
    - if @phone.ip_address.blank? && @phone.phone_model.manufacturer.ieee_name == 'SNOM Technology AG'
      %ul.thumbnails.pull-right
        %li.span4
          %a.thumbnail{:href => "#{image_path('screenshots/set_provisioning_url_snom.png')}"}
            =image_tag('screenshots/set_provisioning_url_snom.png', :alt => "Screenshot Set Provisionierungs-URL Snom WebGUI")

      %p
        Sollten Sie Ihren DHCP-Server noch nicht für das automatische Konfigurieren der SIP-Telefone konfiguriert haben, können Sie manuell in Ihrem Telefon eine Provisionierungs-URL eingeben.
      %p
        Das entsprechende Eingabefeld finden Sie unter
        %br
        Advanced -> Update -> Setting URL
      %p
        Das "{mac}" bitte genau so eingeben, es wird vom Telefon automatisch mit der eigenen MAC-Adresse befüllt:
        %pre
          = "http://#{GemeinschaftSetup.first.sip_domain.host}/settings-{mac}"
      %p
        Danach müssen Sie die Konfiguration abspeichern und das Telefon booten.

.row
  .span12
    %h2= t("phones.sip_accounts.title")
    - if @phone.phone_sip_accounts.any?
      = render "phone_sip_accounts/index_core", :phone_sip_accounts => @phone.phone_sip_accounts

    = render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => PhoneSipAccount}<commit_msg>list extension modules<commit_after>- content_for :title, t("phones.show.page_title")

.row
  .span5
    %table.table.table-striped
      %tr
        %td
          %strong= t('phones.show.mac_address') + ":"
        %td
          = @phone.pretty_mac_address
      %tr
        %td
          %strong= t('phones.show.phone_model_id') + ":"
        %td
          = @phone.phone_model
          - if !@phone.phone_model.product_manual_homepage_url.blank?
            (#{link_to t('phones.show.manual'), @phone.phone_model.product_manual_homepage_url})
      - if @phone.hot_deskable == true
        %tr
          %td
            %strong= t('phones.show.hot_deskable') + ":"
          %td
            = @phone.hot_deskable
        %tr
          %td
            %strong= t('phones.show.fallback_sip_account_id') + ":"
          %td
            = @phone.fallback_sip_account

      - if defined? GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') && GsParameter.get('NIGHTLY_REBOOT_OF_PHONES') == true
        %tr
          %td
            %strong= t('phones.show.nightly_reboot') + ":"
          %td
            = @phone.nightly_reboot == true ? t('simple_form.yes') : t('simple_form.no')          

      %tr
        %td
          %strong= t('phones.show.provisioning_key_active') + ":"
        %td
          = @phone.provisioning_key_active == true ? t('simple_form.yes') : t('simple_form.no')

      %tr{:class => (@phone.ip_address.blank? ? 'warning' : '')}
        %td
          %strong= t('phones.show.ip_address') + ":"
        %td
          - if @phone.ip_address.blank?
            %a{:href => '#', :rel => "tooltip", :title => t('phones.tool_tips.missing_ip_address'), :'data-trigger' => 'hover'}
              = '-'
          - else
            - if current_user.admin?
              = link_to @phone.ip_address, "http://#{@phone.http_user}:#{@phone.http_password}@#{@phone.ip_address}"
            - else
              = @phone.ip_address

      - if current_user.admin? && (!@phone.http_user.blank? || !@phone.http_password.blank?)
        %tr
          %td
            %strong= t('phones.show.http_user') + ":"
          %td
            = @phone.http_user

        %tr
          %td
            %strong= t('phones.show.http_password') + ":"
          %td
            = @phone.http_password

    = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone.phoneable, :child => @phone }


  .span7
    - if @phone.ip_address.blank? && @phone.phone_model.manufacturer.ieee_name == 'SNOM Technology AG'
      %ul.thumbnails.pull-right
        %li.span4
          %a.thumbnail{:href => "#{image_path('screenshots/set_provisioning_url_snom.png')}"}
            =image_tag('screenshots/set_provisioning_url_snom.png', :alt => "Screenshot Set Provisionierungs-URL Snom WebGUI")

      %p
        Sollten Sie Ihren DHCP-Server noch nicht für das automatische Konfigurieren der SIP-Telefone konfiguriert haben, können Sie manuell in Ihrem Telefon eine Provisionierungs-URL eingeben.
      %p
        Das entsprechende Eingabefeld finden Sie unter
        %br
        Advanced -> Update -> Setting URL
      %p
        Das "{mac}" bitte genau so eingeben, es wird vom Telefon automatisch mit der eigenen MAC-Adresse befüllt:
        %pre
          = "http://#{GemeinschaftSetup.first.sip_domain.host}/settings-{mac}"
      %p
        Danach müssen Sie die Konfiguration abspeichern und das Telefon booten.

.row
  .span12
    %h2= t("phones.sip_accounts.title")
    - if @phone.phone_sip_accounts.any?
      = render "phone_sip_accounts/index_core", :phone_sip_accounts => @phone.phone_sip_accounts

    = render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => PhoneSipAccount}

.row
  .span12
    %h2= t("extension_modules.index.page_title")
    - if @phone.extension_modules.any?
      = render "extension_modules/index_core", :extension_modules => @phone.extension_modules

    = render :partial => 'shared/create_link', :locals => {:parent => @phone, :child_class => ExtensionModule}

{'fraction_non_alphanumeric': 0.14090322580645162, 'fraction_numerical': 0.001935483870967742, 'mean_word_length': 2.2732263513513513, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1532017', 'n_tokens_mistral': 2619, 'n_tokens_neox': 2586, 'n_words': 443}