Liquid 참조


Red Hat 3scale API Management 2.10

3scale 설치와 관련된 추가 정보를 찾습니다.

초록

이 가이드에서는 3scale 설치와 상호 작용하는 구성 요소에 대한 정보를 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 용어를 교체하기 위해 최선을 다하고 있습니다. 먼저 마스터(master), 슬레이브(slave), 블랙리스트(blacklist), 화이트리스트(whitelist) 등 네 가지 용어를 교체하고 있습니다. 이러한 변경 작업은 작업 범위가 크므로 향후 여러 릴리스에 걸쳐 점차 구현할 예정입니다. 자세한 내용은 CTO Chris Wright의 메시지에서 참조하십시오.

1장. Liquid 참조

1.1. Liquid란 무엇인가?

Liquired는 API 공급자에 사용할 수 있는 3scale 시스템에서 대부분의 데이터를 표시하고 처리하는 데 사용되는 간단한 프로그래밍 언어입니다. 액체는 원래 Shopify 에서 개발되었으며 웹 전반에서 다른 많은 컨텐츠 관리 시스템 (CMS) 엔진에서 사용됩니다. 3scale 플랫폼에서는 서버 측 데이터를 API 개발자에게 공개하여 높은 수준의 보안을 유지하면서 개발자 포털의 유용성을 크게 확장합니다.

1.1.1. pros & cons

Liquid는 주로 개발자 포털 페이지에서 서버 측 데이터를 가져오고 표시하는 데 사용됩니다. 그러나 액체에는 이것보다 훨씬 더 많은 힘이 있습니다. 그들은 매우 잘 작동합니다:

  • 서버측 데이터에 기반한 페이지의 DOM 및 내용 변경
  • 페이지, 레이아웃 및 부분 구조에 논리 추가
  • 개발자에게 전송된 이메일 템플릿 조작

액체가 문제에 대한 최상의 솔루션을 제공하지 않는 몇 가지 사용 사례가 있습니다. 대부분의 경우 사용자 또는 페이지 URL과 같은 동적 데이터를 사용해야 합니다.

몇 가지 일반적인 조언은 페이지에 논리를 추가하는 기본 방법으로 사용하는 것입니다, 하지만 그것을 발견하거나 지나치게 복잡한 경우 JavaScript로 전환 (또는 유동적으로도 JS에서 잘 작동하므로)로 전환하십시오.

1.2. Liquid를 사용하는 방법

유동 마크업은 논리 태그와 출력 태그의 두 가지 유형으로 나뉩니다. {%} 로 표시된 논리 태그는 if 절, 루프 등과 같은 표준 프로그래밍 언어 요소를 포함하는 조건부 유방문입니다.

{% if current_user %}           <!-- if the user is logged in -->
  <a href="/logout">Logout</a>  <!-- show the logout link -->
{% else %}                      <!-- if the user is not logged in -->
  <a href="/login">Login</a>    <!-- display the login link -->
{% endif %}

{{ }} 로 표시된 출력 태그는 curly braces 간의 태그 값을 표시하는 데 사용됩니다.

{{ current_user.username }}     <!-- display the logged-in user's username value -->

논리 태그에 대한 자세한 내용은 Shopify 튜토리얼 을 참조하십시오. 3scale 유동 출력 태그의 전체 참조는 태그 섹션과 Help > Liquid Reference 아래에 있는 Admin Portal에서 모두 찾을 수 있습니다.

1.2.1. Liquid drops, tags, filters

3scale 개발자 포털에서는 세 가지 유형의 유동 마크업에 액세스할 수 있습니다.

Liquid drops, tags 및 filters는 유동을 사용하는 방법에 언급된 논리 및 출력 태그와 유사합니다.

액체 감소는 가장 기본적인 구조이며, 대부분의 시간을 사용하게 될 것입니다. 사용자 이름 및 애플리케이션의 식별자와 같이 시스템에 저장된 특정 값에 대한 액세스를 제공합니다. 인터프리터는 다른 출력 태그와 동일한 방식으로 처리합니다.

반면, 액체 태그는 추가 사용자 지정을 위해 시스템의 특정 부분을 렌더링하거나 액세스하는 논리 태그 유형입니다(예: 레이아웃에서 콘텐츠를 렌더링하거나 이메일 템플릿 사용자 지정).

필터를 사용하면 drops, values 변환 및 일부 키로 결과 참조를 사용할 수 있습니다. Shopify 웹 사이트 및 유동 참조 섹션에 나열된 특수 3scale 내부 필터 그룹에서 찾을 수 있는 표준 유동 필터 그룹이 있습니다.

1.2.2. 컨텍스트

컨텍스트는 현재 페이지에서 사용할 수 있는 변수(drops)를 설명합니다. 기본 세트에는 다음 변수가 포함됩니다.

  • 공급자
  • urls
  • current_user
  • current_account
  • today

이러한 변수는 이메일 템플릿을 제외한 개발자 포털 전체의 모든 페이지에서 사용할 수 있습니다. 그러나 기본 제공 페이지의 대부분은 사용 가능한 몇 가지 추가 변수를 갖습니다. 예를 들어, 사용자 편집 폼은 사용자 변수를 노출하게 됩니다(현재 사용자 페이지(사용자 편집)에서 사용자의 ID는 이미 알려져 있습니다. 현재 페이지에서 사용 가능한 변수를 확인하려면 특수 태그 ( {% debug:help %})가 있습니다. 페이지 소스의 주석으로 사용할 수 있는 최상위 변수 목록을 추가합니다.

1.2.3. hierarchy

컨텍스트의 직접적인 결과는 액체 드롭이 계층 구조로 구성된다는 것입니다. 사용 가능한 변수 세트는 사용 가능한 최상위 수준 드롭을 나열합니다. 계층 구조 내부의 요소에 대한 액세스 권한을 얻을 수 있습니다.You can get access to elements much more deeper inside the hierarchy. 예를 들어 로그인한 사용자의 사용자 이름을 표시하려면 {{ current_user.username }} 을 작성합니다.

하위 수준 감소를 표시하는 것은 조금 더 복잡합니다. 사용자에 대한 유일한 애플리케이션 이름을 표시한다고 가정합니다. 참조 가이드를 보면 방법 애플리케이션이 계정 드롭다운의 일부임을 확인할 수 있습니다. 즉, 애플리케이션은 단일 애플리케이션 태그의 배열입니다. 사용자에게 둘 이상의 애플리케이션이 있을 수 있는 경우 논리 태그를 사용하여 해당 애플리케이션을 반복해야 합니다. 그렇지 않으면 계정에서 첫 번째(▂ 및 만) 애플리케이션을 참조할 수 있습니다. 이렇게 표시할 코드는 다음과 같습니다. {{ current_account.applications.first.name }} }}.

1.3. Liquid 템플릿

다음 변수는 모든 Liquid 템플릿에서 사용할 수 있습니다.

  • 공급자 - 한 후의 모든 서비스, 계획 및 설정
  • URLs - 개발자 포털의 내장 페이지로의 경로 - 로그인, 로그인
  • CURRENT_ USER - 현재 로그인한 사용자의 사용자이름, 주소 및 권한
  • current_account - 현재 로그인한 사용자의 메시지, 애플리케이션 및 계획
  • 현재 날짜 ???

기본 제공 페이지에는 개발자 포털에 언급된 다른 변수도 사용할 수 있습니다. 예를 들어 사용자 편집 양식 편집에는 사용자 변수가 할당되어 있거나 애플리케이션 세부 정보를 표시하는 동안 변수 애플리케이션에 액세스할 수 있습니다.

변수 유형은 이 참조를 사용하기 위해 중요하며 {% debug:help %} 태그를 사용 가능한 모든 변수와 해당 유형을 HTML 주석에 나열하는 페이지에 두어 확인할 수 있습니다. 그러나 일반적으로 메서드 또는 변수 이름에서 쉽게 추측할 수 있습니다.

1.4. drops

1.5. 태그

1.6. 필터

1.7. drops (up)

1.7.1. 계정 삭제 (up)

개발자 계정. 이메일 주소 또는 유사한 정보를 찾고 있는 경우 사용자 드롭을 참조하십시오.

<h2>Account organization name {{ current_account.name }}</h2>
Plan {{ current_account.bought_account_plan.name }}
Telephone {{ current_account.telephone_number }}

{{ current_account.fields_plain_text }}
{{ current_account.extra_fields_plain_text }}

{% if current_account.approval_required? %}
   <p>This account requires approval.</p>
{% endif %}

{% if current_account.credit_card_required? %}

  {% if current_account.credit_card_stored? %}
    <p>This account has credit card details stored in database.</p>
  {% else %}
    <p>Please enter your {{ 'credit card details' | link_to: urls.payment_details }}.</p>
  {% endif %}

  {% if current_account.credit_card_missing? %}
    <p>This account has no credit card details stored in database.</p>
  {% endif %}
{% endif %}
1.7.1.1. 방법
1.7.1.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ account.errors.name | inline_errors }}
1.7.1.1.2. id

계정의 ID를 반환합니다.

1.7.1.1.3. name

개발자 계정의 조직 이름을 반환합니다.

1.7.1.1.4. vat_zero_text

vat zero에 대한 텍스트를 반환합니다.

1.7.1.1.5. vat_rate

vat rate를 반환합니다.

1.7.1.1.6. unread_messages

읽지 않은 메시지

1.7.1.1.7. latest_messages

최신 메시지 반환

1.7.1.1.8. bought_account_plan

계정이 계약한 플랜을 반환합니다.

1.7.1.1.9. bought_account_contract

계약 계정을 반환

1.7.1.1.10. credit_card_display_number
1.7.1.1.11. credit_card_expiration_date
1.7.1.1.12. credit_card_required?

신용 카드 세부 정보를 입력하기 위해 계정이 필요한지 여부를 반환합니다.

1.7.1.1.13. credit_card_stored?

계정에 저장된 신용 카드 세부 정보가 있는지 여부를 반환합니다.

1.7.1.1.14. credit_card_missing?

계정에 저장된 신용 카드 세부 정보가 없는지 여부를 반환합니다.

1.7.1.1.15. timezone

이 계정의 시간대를 반환

1.7.1.1.17. on_trial

계정이 시험 기간에 있는지 여부, 즉, 모든 유료 계약이 시험 기간 내에 있어야 합니다.

1.7.1.1.18. telephone_number

계정의 전화 번호를 반환합니다.

1.7.1.1.19. approval_required?

계정이 승인이 필요한지 여부를 반환합니다.

1.7.1.1.20. created_at

계정 생성(signup)의 UNIX 타임스탬프 반환 예: 타임스탬프를 JavaScript 날짜로 변환합니다.

<script>
  var data = new Date({{ account.created_at }} * 1000);
</script>
1.7.1.1.21. full_address

법률 주소, 도시, 국가로 구성될 수 있습니다.

1.7.1.1.22. 애플리케이션

계정의 애플리케이션을 반환합니다.

1.7.1.1.23. subscribed_services

ServiceContract 드롭이 있는 배열을 반환합니다.

1.7.1.1.24. admin

이 계정의 admin 사용자를 반환합니다.

1.7.1.1.25. extra_fields_plain_text

계정에 정의된 추가 필드를 일반 텍스트로 반환합니다.

1.7.1.1.26. fields_plain_text

계정에 정의된 필드를 일반 텍스트로 반환합니다.

1.7.1.1.27. extra_fields

이 계정의 값이 있는 추가 필드만 반환합니다 . 모든 추가 필드 출력

{% for field in account.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.28. 필드

이 계정의 값을 가진 모든 필드를 반환합니다 : 모든 필드 인쇄

{% for field in account.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.1.1.29. builtin_fields
1.7.1.1.30. multiple_applications_allowed?
1.7.1.1.31. billing_address

이 계정의 청구 주소를 반환합니다.

1.7.1.1.32. has_billing_address?

이 계정에 청구 주소가 있는지 여부를 반환합니다.

1.7.1.1.33. 수행 가능

권한 메서드에 대한 액세스 권한 부여

{% if account.can.be_deleted? %}
  <!-- do something -->
{% endif %}
1.7.1.1.34. edit_url
1.7.1.1.35. edit_ogone_billing_address_url
1.7.1.1.36. edit_payment_express_billing_address_url
1.7.1.1.37. edit_braintree_blue_credit_card_details_url
1.7.1.1.38. domain
1.7.1.1.39. 업그레이드 했습니까?
1.7.1.1.40. requires_credit_card?
1.7.1.1.41. support_email
1.7.1.1.42. finance_support_email

1.7.2. 계정 계획 드롭 (up)

예: 유동에서 계정 계획 감소 사용

<p class="notice">The examples for plan drop apply here</p>
1.7.2.1. 방법
1.7.2.1.1. 선택된 상태?

계획이 선택되어 있는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.2.1.2. 구매하셨습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.2.1.3. 기능

사용 가능한 기능 배열을 반환합니다.Returns an array of available features.

1.7.2.1.4. setup_fee

설정 값을 반환합니다.

1.7.2.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.2.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.2.1.7. id

계획 ID를 반환합니다.

1.7.2.1.8. 무료?

이 계획은 유 가 아닌 경우 무료입니다. 유 료? 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.2.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.2.1.11. flat_cost

계획의 월 고정 요금을 반환합니다.

1.7.3. 경고 드롭 (up)

예: 유동성에서 경고 드롭 사용

<h2>Alert details</h2>
Level {{ alert.level }}
Message {{ alert.message }}
Utilization {{ alert.utilization }}
1.7.3.1. 방법
1.7.3.1.1. level

경고 수준은 50, 80, 90, 100, 120, 150, 200, 300 중 하나일 수 있습니다.

1.7.3.1.2. message

경고를 설명하는 텍스트 메시지(예 : 분당 히트): 5개

1.7.3.1.3. utilization

경고 1.0을 트리거한 실제 사용률을 나타내는 10진수 수는 100%입니다.

Used by {{ alert.utilization | times: 100 }} percent.

1.7.4. 애플리케이션 드롭 (up)

예: 유동성에서 애플리케이션 드롭 사용

<h2>Application {{ application.name }} ({{ application.application_id }})</h2>
<p>{{ application.description }}</p>
1.7.4.1. 방법
1.7.4.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ application.errors.name | inline_errors }}
1.7.4.1.2. id

애플리케이션의 ID를 반환합니다.

1.7.4.1.3. can_change_plan?

애플리케이션 변경이 직접 또는 요청으로 허용되는 경우 true 를 반환합니다.

1.7.4.1.4. 평가판?

계약이 아직 시험 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 시험 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.4.1.5. 라이브입니까?
1.7.4.1.6. state

가능한 세 가지 상태는 다음과 같습니다.

    - pending
    - live
    - suspended
1.7.4.1.7. remaining_trial_period_days

아직 시험 기간에 남아 있는 날의 수입니다.

1.7.4.1.8. 계획

애플리케이션 계획에 따라 계획 드롭다운을 반환합니다.

1.7.4.1.9. plan_change_permission_name

허용된 동작의 이름을 반환합니다.

1.7.4.1.10. plan_change_permission_warning

허용되는 동작의 경고 메시지를 반환합니다.

1.7.4.1.11. contract
1.7.4.1.12. admin_url

애플리케이션의 admin_url을 반환합니다.

1.7.4.1.13. name

애플리케이션 이름을 반환합니다.

1.7.4.1.14. 수행 가능
1.7.4.1.15. OAuth
1.7.4.1.16. 보류 중일 수 있습니까?

애플리케이션 상태가 보류 중인 경우 true 를 반환합니다.

1.7.4.1.17. buyer_alerts_enabled?
1.7.4.1.18. description

애플리케이션 설명을 반환합니다.

1.7.4.1.19. redirect_url

애플리케이션의 OAuth에 대한 리디렉션 URL을 반환합니다.

1.7.4.1.20. filters_limit

이 애플리케이션에 허용되는 참조 필터의 양을 반환합니다.

1.7.4.1.21. keys_limit

이 애플리케이션에 허용되는 애플리케이션 키의 양을 반환합니다.

1.7.4.1.22. referrer_filters

이 애플리케이션과 관련된 참조 필터를 반환합니다.

1.7.4.1.23. rejection_reason

애플리케이션을 거부하는 이유를 반환합니다.

1.7.4.1.24. user_key

애플리케이션의 user_key를 반환합니다.

1.7.4.1.25. application_id

애플리케이션의 application_id를 반환합니다.

1.7.4.1.26. key

애플리케이션 ID 또는 사용자 키를 반환합니다.

1.7.4.1.27. url

이 애플리케이션에 대한 내장 세부 보기의 URL을 반환합니다.

1.7.4.1.28. edit_url

이 애플리케이션에 대한 내장 편집 뷰의 URL을 반환합니다.

1.7.4.1.29. update_user_key_url
1.7.4.1.30. log_requests_url
1.7.4.1.31. alerts_url
1.7.4.1.32. application_keys_url
1.7.4.1.33. service

해당 애플리케이션이 속한 서비스.

1.7.4.1.34. keys

애플리케이션 키를 반환합니다.

{% case application.keys.size %}
{% when 0 %}
  Generate your application key.
{% when 1 %}
  <h4>Application key for {{ application.name }} {{ application.application_id }}</h4>
  <p>Key is: {{ application.keys.first }}</p>
{% else %}
  <h4>Application keys for {{ application.name }} {{ application.application_id }}</h4>
  <ul>
    {% for key in application.keys %}
      <li>{{ key }}</li>
    {% endfor %}
  </ul>
{% endcase %}
1.7.4.1.35. user_key_mode?
1.7.4.1.36. app_id_mode?
1.7.4.1.37. change_plan_url
1.7.4.1.38. log_requests?
1.7.4.1.39. application_keys
1.7.4.1.40. extra_fields

이 애플리케이션의 값을 사용하여 히어드된 추가 필드를 반환합니다. 예: 모든 추가 필드 출력

{% for field in application.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.4.1.41. 필드

이 애플리케이션의 값이 포함된 모든 내장 및 추가 필드 반환 예: 모든 필드 출력

{% for field in application.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.4.1.42. builtin_fields

애플리케이션의 기본 필드만 반환합니다.

1.7.4.1.43. cinstance

1.7.5. ApplicationKey 드롭 (up)

1.7.5.1. 방법
1.7.5.1.1. id
1.7.5.1.2. value
1.7.5.1.3. url
1.7.5.1.4. 애플리케이션

1.7.6. ApplicationPlan drop (up)

1.7.6.1. 방법
1.7.6.1.1. 선택된 상태?

계획이 선택되어 있는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.6.1.2. 구매하셨습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.6.1.3. 기능

계획의 눈에 띄는 기능을 반환합니다.

{% if plan == my_free_plan %}
   <p>These plans are the same.</p>
{% else %}
   <p>These plans are not the same.</p>
{% endif %}
1.7.6.1.4. setup_fee

계획의 설정 값을 반환합니다.

1.7.6.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.6.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.6.1.7. id

계획 ID를 반환합니다.

1.7.6.1.8. 무료?

이 계획은 유 가 아닌 경우 무료입니다. 유 료? 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.6.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.6.1.11. flat_cost

계획의 월 고정 요금을 반환합니다.

1.7.6.1.12. metrics

계획의 지표를 반환합니다.

1.7.6.1.13. usage_limits

계획의 사용 제한을 반환합니다.

1.7.6.1.14. service

계획의 서비스를 반환합니다.

1.7.7. 기본 드롭 (up)

1.7.7.1. 방법
1.7.7.1.1. login_url
1.7.7.1.2. user_identified?

1.7.8. 기본 드롭 (up)

1.7.8.1. 방법
1.7.8.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ base.errors.name | inline_errors }}
1.7.8.1.2. title

제목 결과를 반환합니다.

1.7.8.1.3. kind

결과의 반환은 'topic' 또는 'page'일 수 있습니다.

1.7.8.1.4. url

결과의 리소스 URL을 반환합니다.

1.7.8.1.5. description

결과에 대한 설명 문자열을 반환합니다.

1.7.9. BillingAddressField 드롭 (up)

1.7.9.1. 방법
1.7.9.1.1. input_name
1.7.9.1.2. label
1.7.9.1.3. 선택 사항
1.7.9.1.4. errors
1.7.9.1.5. html_id
1.7.9.1.6. 숨겨진?
1.7.9.1.7. 눈에 띄는?
1.7.9.1.8. read_only?
1.7.9.1.9. name
1.7.9.1.10. value
1.7.9.1.11. 필수 항목

1.7.10. 드롭할 수 있습니다 (up)

1.7.10.1. 방법
1.7.10.1.1. be_updated?
1.7.10.1.2. add_referrer_filters?
1.7.10.1.3. add_application_keys?
1.7.10.1.4. regenerate_user_key?
1.7.10.1.5. regenerate_oauth_secret?
1.7.10.1.6. manage_keys?
1.7.10.1.7. delete_key?

1.7.11. 드롭할 수 있습니다 (up)

1.7.11.1. 방법
1.7.11.1.1. change_plan?

1.7.12. CAS 드롭 (up)

1.7.12.1. 방법
1.7.12.1.1. login_url
1.7.12.1.2. user_identified?

1.7.13. 계약 드롭 (up)

Plan of the contract {{ contract.plan.name }}
1.7.13.1. 방법
1.7.13.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ contract.errors.name | inline_errors }}
1.7.13.1.2. id

id를 반환합니다.

1.7.13.1.3. can_change_plan?

변경 가능한 경우 true를 반환합니다.Return true if any form of change is possible.

1.7.13.1.4. 평가판?

계약이 아직 시험 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 시험 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.13.1.5. 라이브입니까?
1.7.13.1.6. state

가능한 세 가지 상태는 다음과 같습니다.

    - pending
    - live
    - suspended
1.7.13.1.7. remaining_trial_period_days

아직 시험 기간에 남아 있는 날의 수입니다.

1.7.13.1.8. 계획

계약 계획을 반환합니다.

1.7.13.1.9. plan_change_permission_name

허용된 동작의 이름을 반환합니다.

1.7.13.1.10. plan_change_permission_warning

허용되는 동작의 경고 메시지를 반환합니다.

1.7.13.1.11. contract

1.7.14. 국가 드롭 (up)

1.7.14.1. 방법
1.7.14.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ country.errors.name | inline_errors }}
1.7.14.1.2. to_str
1.7.14.1.3. 코드
1.7.14.1.4. label

1.7.15. countryField 드롭 (업)

1.7.15.1. 방법
1.7.15.1.1. value

국가의 ID를 반환합니다.

{{ account.fields.country.value }} => 42

compare with:

{{ account.fields.country }} => 'United States'
1.7.15.1.2. name

필드의 시스템 이름을 반환합니다.

1.7.15.1.3. 필수 항목
1.7.15.1.4. 숨겨진?
1.7.15.1.5. hidden
1.7.15.1.6. 눈에 띄는?
1.7.15.1.7. visible
1.7.15.1.8. read_only
1.7.15.1.9. errors
1.7.15.1.10. input_name
1.7.15.1.11. html_id
1.7.15.1.12. label

필드의 레이블을 반환합니다.

{{ account.fields.country.label }}
<!-- => 'Country' -->
1.7.15.1.13. to_str

국가의 이름을 반환합니다.

{{ account.fields.country }} => 'United States'
1.7.15.1.14. 선택 사항

1.7.16. 현재 사용자 드롭 (up)

1.7.16.1. 방법
1.7.16.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ current_user.errors.name | inline_errors }}
1.7.16.1.2. admin?

사용자가 관리자인지 여부를 반환합니다.

{% if user.admin? %}
  <p>You are an admin of your account.</p>
{% endif %}
1.7.16.1.3. 사용자 이름

사용자 이름, html 이스케이프를 반환합니다.

1.7.16.1.4. 계정

사용자 계정을 반환합니다.

1.7.16.1.5. name

사용자의 첫 번째 및 성을 반환합니다.

1.7.16.1.6. email

사용자의 이메일을 반환합니다.

1.7.16.1.7. password_required?

이 방법은 Janrain, CAS 또는 기타 SSO(Single-sign-on) 방법을 통해 인증된 사용자에 대해 기본 제공 개발자 포털 인증 메커니즘을 사용하는 사용자에게 true 를 반환합니다.

{{ if user.password_required? }}


{{ endif }}
1.7.16.1.8. 섹션

사용자가 액세스할 수 있는 섹션 목록을 반환합니다.

{% if user.sections.size > 0 %}
  <p>You can access following sections of our portal:</p>
   <ul>
    {% for section in user.sections %}
      <li>{{ section }}</li>
    {% endfor %}
  </ul>
{% endif %}
1.7.16.1.9. role

사용자의 역할을 반환합니다.

1.7.16.1.10. roles_collection

사용자에게 사용 가능한 역할 목록 튜닝

{% for role in user.roles_collection %}
  <li>
    <label for="user_role_{{ role.key }}">

      {{ role.text&nbsp;}}
    </label>
    </li>
  {% endfor %}
1.7.16.1.11. url

사용자의 리소스 URL 반환

{{ 'Delete' | delete_button: user.url }}
1.7.16.1.12. edit_url

사용자를 편집하기 위한 URL 반환

{{ 'Edit' | link_to: user.edit_url, title: 'Edit', class: 'action edit' }}
1.7.16.1.13. 수행 가능

사용자 설정 및 사용자의 역할에 따라 현재 사용자의 권한을 노출합니다. 반환된 오브젝트에서 이러한 메서드를 호출할 수 있습니다.

  • invite_user?
  • create_application?
  • see_log_requests?
{% if current_user.can.see_log_requests? and application.log_requests? %}
   (<a href="{{ application.log_requests_url }}" class="action edit">App Request Log</a>)
{% endif %}
1.7.16.1.14. extra_fields

이 사용자에 대한 값으로 hidden 추가 필드 반환 : 모든 추가 필드 출력

{% for field in user.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.16.1.15. 필드

이 사용자의 값을 가진 모든 필드를 반환 예: 모든 필드 인쇄

{% for field in user.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.16.1.16. builtin_fields

이 사용자에 대한 값이 있는 모든 내장 필드를 반환합니다.

1.7.17. 오류 드롭 (up)

잘못된 데이터로 인해 양식을 제출하지 못하면 관련 모델에서 오류 배열을 사용할 수 있습니다.

1.7.17.1. 방법
1.7.17.1.1. attribute

이 오류에 대한 모델의 특성을 반환합니다.Returns attribute of the model to this error is related.

{{ account.errors.org_name.first.attribute }}
<!-- org_name -->
1.7.17.1.2. message

오류에 대한 설명을 반환합니다.

{{ account.errors.first.message }}
<!-- cannot be blank -->
1.7.17.1.3. value

오류가 관련된 특성의 값을 반환합니다.Returns value of the attribute to which the error is related.

{{ account.errors.org_name.first.value }}
 <!-- => "ACME Co." -->
1.7.17.1.4. to_str

오류에 대한 전체 설명을 반환합니다(특성 이름 포함)

{{ model.errors.first }}
<!-- => "Attribute can't be blank" -->

1.7.18. 오류 드롭 (up)

예: 모든 오류 가져오기

{% for error in form.errors %}
  attribute: {{ error.attribute }}
  ...
{% endfor %}
1.7.18.1. 방법
1.7.18.1.1. 비어 있습니까?

오류가 없는 경우 true를 반환합니다.

{% if form.errors == empty %}
  Congratulations! You have no errors!
{% endif %}
1.7.18.1.2. 현재?

몇 가지 오류가 있는 경우 true를 반환합니다.

{% if form.errors == present %}
  Sorry, there were some errors.
{% endif %}

1.7.19. 기능 드롭 (up)

1.7.19.1. 방법
1.7.19.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ feature.errors.name | inline_errors }}
1.7.19.1.2. name

특성의 이름을 반환합니다.Returns the name of the feature.

<h2>Feature {{ feature.name }}</h2>
1.7.19.1.3. description

기능에 대한 설명을 반환합니다.Returns the description of the feature.

1.7.19.1.4. has_description?

기능에 설명이 있는지 여부를 반환합니다.

{% if feature.has_description? %}
  {{ feature.description }}
{% else %}
   This feature has no description.
{% endif %}

1.7.20. 필드 드롭 (up)

1.7.20.1. 방법
1.7.20.1.1. value

필드의 값을 반환합니다.

Name: {{ account.fields.first_name.value }}
1.7.20.1.2. name

필드의 시스템 이름을 반환합니다.

1.7.20.1.3. 필수 항목
1.7.20.1.4. 숨겨진?
1.7.20.1.5. hidden
1.7.20.1.6. 눈에 띄는?
1.7.20.1.7. visible
1.7.20.1.8. read_only
1.7.20.1.9. errors
1.7.20.1.10. input_name

폼이 제출될 때 예상되는 HTML 입력의 이름을 반환합니다.

<!-- the 'name' attribute will be 'account[country]' -->
1.7.20.1.11. html_id

일반적으로 HTML ID 속성으로 사용되는 고유 필드 식별자를 반환합니다.

{{ account.fields.country.html_id }}
<!--  => 'account_country' -->
1.7.20.1.12. label

필드의 레이블을 반환합니다.

{{ account.fields.country.label }}
<!-- => 'Country' -->
1.7.20.1.13. to_str

필드 값을 변수로 사용하는 경우 반환합니다.

{{ account.fields.first_name }} => 'Tom'
1.7.20.1.14. 선택 사항

해당 필드에 사용 가능한 선택 영역의 배열을 반환합니다(있는 경우). 예를 들어, 과일이라는 필드에는 [apple', 'bannana', ' 오렌지 ']로 응답할 수 있습니다.

Audience > 계정 > 설정 > 필드 정의에서 3scale 관리 포털에서 선택 사항을 정의할 수 있습니다. 각 배열 요소는 해당 필드가 특수한 기본 제공 항목(예: 국가 )이 아닌 경우 일반적으로 동일한 ID 및 레이블에 응답 합니다. 향후 호환성을 위해 'as is' 옵션 을 출력하는 대신 이러한 방법을 사용하는 것이 좋습니다.

{% for choice in field.choices %}
  <select name="{{ field.input_name }}" id="{{ field.html_id }}_id"
          class="{{ field.errors | error_class }}">
  <option {% if field.value == choice %} selected {% endif %} value="{{ choice.id }}">
    {{ choice }}
  </option>
{% endfor %}

1.7.21. Flash drop (up)

1.7.21.1. 방법
1.7.21.1.1. messages

메시지 배열 반환

{% for message in flash.messages %}
   <p id="flash-{{ message.type }}">
     {{ message.text }}
   </p>
{% endfor %}

1.7.22. 포럼 드롭 (up)

1.7.22.1. 방법
1.7.22.1.1. 활성화됨?

포럼 기능이 활성화된 경우 true 를 반환합니다.

{% if forum.enabled? %}
  <a href="/forum">Check out our forum!</a>
{% endif %}
1.7.22.1.2. latest_posts

1.7.23. I18n drop (up)

i18n 지원에 유용한 문자열을 제공합니다.

{{ object.some_date | date: i18n.long_date }}
1.7.23.1. 방법
1.7.23.1.1. short_date

%b %d의 별칭

Dec 11
1.7.23.1.2. long_date

%B %d의 별칭, %Y

December 11, 2013
1.7.23.1.3. default_date

%Y-%m-%d별칭

2013-12-11

1.7.24. 초대 드롭 (up)

 Email: {{ invitation.email }}


<tr id="invitation_{{ invitation.id }}">
  <td> {{ invitation.email }} </td>
  <td> {{ invitation.sent_at | date: i18n.short_date }} </td>
  <td>
    {% if invitation.accepted? %}
      yes, on {{invitation.accepted_at | format: i18n.short_date }}
    {% else %}
      no
    {% endif %}
  </td>
</tr>
1.7.24.1. 방법
1.7.24.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ invitation.errors.name | inline_errors }}
1.7.24.1.2. email

이메일 주소 반환

1.7.24.1.3. 수락됩니까?

초대가 수락되면 true를 반환합니다.

1.7.24.1.4. accepted_at

초대가 수락된 경우 날짜를 반환합니다.

{{ invitation.accepted_at | date: i18n.short_date }}
1.7.24.1.5. sent_at

작성 날짜를 반환합니다.

{{ invitation.sent_at | date: i18n.short_date }}
1.7.24.1.6. resend_url

초대를 다시 보낼 URL을 반환합니다.

{{ "Resend" | update_button: invitation.resend_url}}
1.7.24.1.7. url

리소스 URL 반환

{{ "Delete" | delete_button: invitation.url }}

1.7.25. 송장 드롭 (up)

1.7.25.1. 방법
1.7.25.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ invoice.errors.name | inline_errors }}
1.7.25.1.2. friendly_id

친숙한 ID를 반환합니다.

<td> {{ invoice.id }} </td>
<td> {{ invoice.name }} </td>
<td> {{ invoice.state }} </td>
<td> {{ invoice.cost }} {{ invoice.currency }} </td>
1.7.25.1.3. name

월 및 연도로 구성된 문자열

1.7.25.1.4. state
1.7.25.1.5. cost

2개의 10진수로 숫자를 반환합니다.

23.00
1.7.25.1.6. 통화
1.7.25.1.7. cost_without_vat

VAT를 통해 비용을 회수할 수 있습니다.

1.7.25.1.8. vat_amount

vat ammount를 반환합니다.

1.7.25.1.9. exists_pdf?

PDF가 생성된 경우 true를 반환합니다.

1.7.25.1.10. period_begin
{{ invoice.period_begin | date: i18n.short_date }}
1.7.25.1.11. period_end
{{ invoice.period_end | date: i18n.long_date }}
1.7.25.1.12. issued_on
{{ invoice.issued_on | date: i18n.long_date }}
1.7.25.1.13. due_on
{{ invoice.due_on | date: i18n.long_date }}
1.7.25.1.15. vat_code
1.7.25.1.16. fiscal_code
1.7.25.1.17. 계정

계정 삭제 반환

1.7.25.1.18. buyer_account
1.7.25.1.19. line_items

LineItemDrop 배열을 반환합니다.

{% for line_item in invoice.line_items %}
  <tr class="line_item {% cycle 'odd', 'even' %}">
    <th>{{ line_item.name }}</th>
    <td>{{ line_item.description }}</td>
    <td>{{ line_item.quantity }}</td>
    <td>{{ line_item.cost }}</td>
  </tr>
{% endfor %}
1.7.25.1.20. payment_transactions

다양한 PaymentTransactionDrop을 반환합니다.

{% for payment_transaction in invoice.payment_transactions %}
  <tr>
    <td> {% if payment_transaction.success? %} Success {% else %} Failure {% endif %} </td>
    <td> {{ payment_transaction.created_at }} </td>
    <td> {{ payment_transaction.reference }} </td>
    <td> {{ payment_transaction.message }} </td>
    <td> {{ payment_transaction.amount }} {{ payment_transaction.currency }} </td>
  </tr>
{% endfor %}
1.7.25.1.21. url

송장의 리소스 URL 반환

{{ "Show" | link_to: invoice.url }}
1.7.25.1.22. pdf_url

송장 pdf의 리소스 URL 반환

{{ "PDF" | link_to: invoice.pdf_url }}

1.7.26. Janrain drop (up)

1.7.26.1. 방법
1.7.26.1.1. login_url
1.7.26.1.2. user_identified?
1.7.26.1.3. session_url
1.7.26.1.4. relying_party

1.7.27. lineitem drop (up)

1.7.27.1. 방법
1.7.27.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ line_item.errors.name | inline_errors }}
1.7.27.1.2. name
{% for line_item in invoice.line_items %}
  <tr class="line_item {% cycle 'odd', 'even' %}">
    <th>{{ line_item.name }}</th>
    <td>{{ line_item.description }}</td>
    <td>{{ line_item.quantity }}</td>
    <td>{{ line_item.cost }}</td>
  </tr>
{% endfor %}
1.7.27.1.3. description
1.7.27.1.4. 수량
1.7.27.1.5. cost

1.7.28. 메시지 드롭 (up)

1.7.28.1. 방법
1.7.28.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ message.errors.name | inline_errors }}
1.7.28.1.2. id

메시지의 ID를 반환합니다.

1.7.28.1.3. 제목

subject가 존재하지 않으면 잘린 본문 또는 ( subject) 문자열이 반환됩니다.

1.7.28.1.4. body

메시지의 본문

1.7.28.1.5. created_at

작성 날짜를 반환합니다.

{{ message.created_at | date: i18n.short_date }}
1.7.28.1.6. url

메시지 세부 정보의 URL은 받은 상자 또는 상자를 가리킵니다.

1.7.28.1.7. state

'read' 또는 'read' 중 하나입니다.

1.7.28.1.8. sender

보낸 사람의 이름을 반환합니다.Returns the name of the sender.

1.7.28.1.9. 다음으로 변경

수신자의 이름을 반환합니다.

1.7.28.1.10. 받는 사람

1.7.29. 메시지 드롭 (up)

1.7.29.1. 방법
1.7.29.1.1. type

가능한 메시지 유형은 다음과 같습니다.

  • 성공 (현재 사용되지 않음)
  • info
  • 경고
  • 위험
1.7.29.1.2. text

1.7.30. 메트릭 드롭 (업)

1.7.30.1. 방법
1.7.30.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ metric.errors.name | inline_errors }}
1.7.30.1.2. 단위

메트릭의 단위를 반환합니다.

This metric is measured in {{ metric.unit | pluralize }}
1.7.30.1.3. description

메트릭에 대한 설명을 반환합니다.

1.7.30.1.4. name

메트릭의 이름을 반환합니다.

<h4>Metric {{ metric.name }}</h4>
<p>{{ metric.description }}</p>
1.7.30.1.5. system_name

이 메트릭의 시스템 이름을 반환합니다.

<h4>Metric {{ metric.name }}</h4>
<p>{{ metric.system_name }}</p>
1.7.30.1.6. usage_limits

메트릭의 사용량 제한을 반환합니다.

{% if metric.usage_limits.size > 0 %}
   <p>Usage limits of the metric</p>
   <ul>
     {% for usage_limit in metric.usage_limits %}
       <li>{{ usage_limit.period }} : {{ usage_limit.value }}</li>
     {% endfor %}
   </ul>
 {% else %}
   <p>This metric has no usage limits</p>
{% endif %}
1.7.30.1.7. pricing_rules

메트릭의 가격 규칙을 반환합니다.

{% if metric.pricing_rules.size > 0 %}
  <p>Pricing rules of the metric</p>
  <ul>
  {% for pricing_rule in metric.pricing_rules %}
    <li>{{ pricing_rule.cost_per_unit }}</li>
  {% endfor %}
  </ul>

{% else %}
  <p>This metric has no pricing rules</p>
{% endif %}
1.7.30.1.8. has_parent

1.7.31. 페이지 드롭 (up)

1.7.31.1. 방법
1.7.31.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ page.errors.name | inline_errors }}
1.7.31.1.2. title

페이지의 제목을 반환합니다.

<title>{{ page.title }}</title>
1.7.31.1.3. system_name

페이지의 시스템 이름을 반환합니다.

{% if page.system_name == 'my_page' %}
  {% include 'custom_header' %}
{% endif %}

1.7.32. 페이지 드롭 (up)

1.7.32.1. 방법
1.7.32.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ page.errors.name | inline_errors }}
1.7.32.1.2. title
1.7.32.1.3. kind
1.7.32.1.4. url
1.7.32.1.5. description

1.7.33. 페이지 매김 드롭 (up)

1.7.33.1. 방법
1.7.33.1.1. page_size

하나의 전체 페이지에 있는 항목 수입니다.

  {% for part in pagination.parts %}
    {% if part.is_link %}
      {% case part.rel %}
      {% when 'previous' %}
        {% assign css_class = 'previous_page' %}
      {% when 'next' %}
        {% assign css_class = 'next_page' %}
      {% else %}
        {% assign css_class = '' %}
      {% endcase %}

      <a class="{{ css_class }}" rel="{{ part.rel}}" href="{{ part.url }}">{{ part.title }}</a>
    {% else %}
      {% case part.rel %}
      {% when 'current' %}
         <em class="current">{{ part.title }}</em>
      {% when 'gap' %}
         &#x2026;
      {% else %}
         {{ part.title }}
      {% endcase %}
    {% endif %}
  {% endfor %}


<!-- Outputs:
  ============================================

  <a class="previous_page" rel="prev" href="?page=7">&#x2190; Previous</a>
  <a rel="start" href="?page=1">1</a>
  <a href="?page=2">2</a>
  <a href="?page=3">3</a>
  <a href="?page=4">4</a>
  <a href="?page=5">5</a>
  <a href="?page=6">6</a>
  <a rel="prev" href="?page=7">7</a>
  <em class="current">8</em>
  <a rel="next" href="?page=9">9</a>
  <a href="?page=10">10</a>
  <a href="?page=11">11</a>
  <a href="?page=12">12</a>
  &#x2026;
  <a href="?page=267">267</a>
  <a href="?page=268">268</a>
  <a class="next_page" rel="next" href="?page=9">Next &#x2192;</a>

=======================================
-->
1.7.33.1.2. current_page

현재 선택한 페이지 수입니다.

1.7.33.1.3. current_offset

지금까지 건너뛴 상태입니다.

1.7.33.1.4. pages

총 페이지 수.

1.7.33.1.5. items

모든 페이지의 총 항목 수입니다.

1.7.33.1.6. 이전

이전 페이지 또는 빈 페이지 수입니다.

1.7.33.1.7. Next

다음 페이지 또는 빈 페이지 수입니다.

1.7.33.1.8. parts

사용자에게 친숙한 페이지를 렌더링하는 데 도움이 되는 요소입니다. 자세한 내용은 [part-drop[part drop]을 참조하십시오.

1.7.34. 부품 드롭 (up)

1.7.34.1. 방법
1.7.34.1.1. url
1.7.34.1.2. rel
1.7.34.1.3. 현재?
1.7.34.1.5. title
1.7.34.1.6. to_s

1.7.35. PaymentGateway drop (up)

1.7.35.1. 방법
1.7.35.1.1. braintree_blue?

현재 결제 게이트웨이가 braintree paids.com인지 여부를 반환합니다.

1.7.35.1.2. authorize_net?

현재 결제 게이트웨이가 authorize.Net인지 여부를 반환합니다.

1.7.35.1.3. type

이 지불 게이트웨이의 유형을 반환합니다.

1.7.36. PaymentTransaction 드롭 (up)

1.7.36.1. 방법
1.7.36.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ payment_transaction.errors.name | inline_errors }}
1.7.36.1.2. 통화

통화를 반환합니다.

{% for payment_transaction in invoice.payment_transactions %}
  <tr>
    <td> {% if payment_transaction.success? %} Success {% else %} Failure {% endif %} </td>
    <td> {{ payment_transaction.created_at }} </td>
    <td> {{ payment_transaction.reference }} </td>
    <td> {{ payment_transaction.message }} </td>
    <td> {{ payment_transaction.amount }} {{ payment_transaction.currency }} </td>
  </tr>
{% endfor %}
1.7.36.1.3. 수량

금액을 반환합니다.

1.7.36.1.4. created_at

작성 날짜를 반환합니다.

1.7.36.1.5. 성공?

true인 경우 true를 반환합니다.

1.7.36.1.6. message

트랜잭션의 메시지를 반환합니다.

1.7.36.1.7. reference

참조 반환

1.7.37. PlanFeature drop (up)

1.7.37.1. 방법
1.7.37.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ plan_feature.errors.name | inline_errors }}
1.7.37.1.2. name

특성의 이름을 반환합니다.Returns the name of the feature.

<h2>Feature {{ feature.name }}</h2>
1.7.37.1.3. description

기능에 대한 설명을 반환합니다.Returns the description of the feature.

1.7.37.1.4. has_description?

기능에 설명이 있는지 여부를 반환합니다.

{% if feature.has_description? %}
  {{ feature.description }}
{% else %}
   This feature has no description.
{% endif %}
1.7.37.1.5. 활성화됨?

1.7.38. Post drop (up)

1.7.38.1. 방법
1.7.38.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ post.errors.name | inline_errors }}
1.7.38.1.2. body

Post의 텍스트입니다.

1.7.38.1.3. 주제

모든 게시물은 [topic-drop[topic]에 속합니다.

1.7.38.1.4. created_at

이 포스팅이 작성된 날짜

{{ post.created_at | date: i18n.short_date }}
1.7.38.1.5. url

이 문서의 URL

1.7.39. Post drop (up)

1.7.39.1. 방법
1.7.39.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ post.errors.name | inline_errors }}
1.7.39.1.2. title
1.7.39.1.3. kind
1.7.39.1.4. url
1.7.39.1.5. description

1.7.40. pricingRule drop (업)

1.7.40.1. 방법
1.7.40.1.1. cost_per_unit

가격 규칙 예의 단위당 비용을 반환합니다. 예를 들면, 유 동성에서 가격 규칙 드롭 사용

<h2>Pricing rule</h2>
Min value {{ pricing_rule.min }}
Max value {{ pricing_rule.max }}
Cost per unit {{ pricing_rule.cost_per_unit }}
1.7.40.1.2. min

가격 규칙의 최소 값을 반환합니다.

1.7.40.1.3. max

가격 규칙의 최대값을 반환합니다.

1.7.40.1.4. 계획

가격 규칙 반환

1.7.41. 공급자 드롭 (up)

1.7.41.1. 방법
1.7.41.1.1. name

조직의 이름을 반환합니다.

Domain {{ provider.domain }}

{% if provider.multiple_applications_allowed? %}

     <p>Applications</p>
     <ul>
     {% for app in account.applications %}
       <li>{{ app.name }}</li>
     {% endfor %}
     </ul>

{% else %}
   Application {{ account.applications.first.name }}
{% endif %}

For general questions contact us at {{ provider.support_email }},
for invoice or payment related questions contact us at {{ provider.finance_support_email }}
1.7.41.1.2. payment_gateway

조직과 연결된 결제 게이트웨이를 반환합니다.

1.7.41.1.3. domain

개발자 포털의 도메인

1.7.41.1.4. timezone

사용하는 시간대를 반환합니다. 관리 포털에서 시간대를 변경할 수 있습니다. 대시보드 > 계정 설정 을 선택합니다. 개요 페이지에서 계정 세부 정보 까지 아래로 스크롤하고 편집 을 클릭하고 시간대 필드를 수정합니다.

1.7.41.1.5. support_email

계정의 이메일 지원

1.7.41.1.6. finance_support_email

계정의 재무 지원 이메일

1.7.41.1.7. telephone_number

계정의 전화 번호를 반환합니다.

1.7.41.1.8. multiple_applications_allowed?

개발자가 자체 키, 통계 등을 사용하여 별도의 애플리케이션을 사용할 수 있는 경우 true입니다. 이것은 당신의 3scale 계획에 달려 있습니다.

{% if provider.multiple_applications_allowed? %}

     <p>Applications</p>
     <ul>
     {% for app in account.applications %}
       <li>{{ app.name }}</li>
     {% endfor %}
     </ul>

{% else %}
   Application {{ account.applications.first.name }}
{% endif %}
1.7.41.1.9. logo_url

로고 URL 반환

1.7.41.1.10. multiple_services_allowed?

3scale 계획을 통해 여러 API를 별도의 서비스로 관리할 수 있는 경우 True입니다.

{% if provider.multiple_services_allowed? %}
  {% for service in provider.services %}
     Service {{ service.name }} is available.
  {% endfor %}
{% endif %}
1.7.41.1.11. finance_allowed?
1.7.41.1.12. multiple_users_allowed?

개발자 계정에 여러 개의 로그인에 연결할 수 있는 경우 True입니다. 이는 사용자의 3scale 계획에 따라 다르며 audience > Developer Portal > Feature Visibility 아래에 있는 관리 포털에서 개발자 포털에 대한 가시성이 설정되어 있는 경우에 따라 달라집니다.

{% if provider.multiple_users_allowed? %}
  <ul id="subsubmenu">
    <li>
       {{ 'Users' | link_to: urls.users }}
    </li>
    <li>
      {{ 'Sent invitations' | link_to: urls.invitations }}
    </li>
  </ul>
{% endif %}
1.7.41.1.13. account_plans

게시된 모든 계정 계획을 반환합니다.

<p>We offer following account plans:</p>
<ul>
{% for plan in model.account_plans %}
  <li>{{ plan.name }} </li>
{% endfor %}
</ul>
1.7.41.1.14. services

정의된 모든 서비스를 반환합니다.

<p>You can signup to any of our services!</p>
<ul>
{% for service in provider.services %}
  <li>{{ service.name }} <a href="/signup/service/{{ service.system_name }}">Signup!</a></li>
{% endfor %}
1.7.41.1.15. signups_enabled?

Audience > Accounts > Settings > Usage Rules > 아래의 3scale 관리 포털에서 signups를 활성화하거나 비활성화할 수 있습니다.

1.7.41.1.16. account_management_enabled?

Audience > Accounts > Settings > Usage Rules > 아래의 3scale 관리 포털에서 계정 관리를 활성화하거나 비활성화할 수 있습니다.

1.7.42. ReferrerFilter 드롭 (up)

1.7.42.1. 방법
1.7.42.1.1. id
1.7.42.1.2. value
1.7.42.1.3. delete_url
1.7.42.1.4. 애플리케이션

1.7.43. 요청 드롭 (up)

예: 유동성에서 요청 드롭 사용

<h2>Request details</h2>
URI {{ request.request_uri }}
Host {{ request.host }}
Host and port {{ request.host_with_port }}
1.7.43.1. 방법
1.7.43.1.1. request_uri

요청의 URI를 반환합니다.

1.7.43.1.2. host_with_port

요청 포트가 포함된 호스트를 반환합니다.

1.7.43.1.3. host

요청 URL의 호스트 부분을 반환합니다.

1.7.43.1.4. 경로

요청 URL의 경로 부분을 반환합니다.

{% if request.path == '/' %}
  Welcome on a landing page!
{% else %}
  This just an ordinary page.
{% endif %}

1.7.44. 역할 드롭 (up)

1.7.44.1. 방법
1.7.44.1.1. name

역할의 내부 이름을 반환하고 시스템에 중요한 역할 이름을 반환합니다.

1.7.44.1.2. description

역할에 대한 설명적인 텍스트 반환

1.7.45. 검색 드롭 (up)

1.7.45.1. 방법
1.7.45.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ search.errors.name | inline_errors }}
1.7.45.1.2. query

검색된 문자열을 반환합니다.

<h3>{{ search.token }}</h3>
<p>found on {{ search.total_found }} {{ search.item | pluralize }} </p>
<dl>
  {% for result in search.results %}
    <dt>
       [ {{ result.kind | capitalize}} ]
      {{ result.title | link_to: result.url }}
    </dt>
    <dd>
      {{ result.description }}
    </dd>
  {% endfor %}
</dl>
1.7.45.1.3. total_found

일치하는 요소 수를 반환합니다.

1.7.45.1.4. 결과

que search에 대한 결과 배열 확인

1.7.46. 서비스 드롭 (up)

1.7.46.1. 방법
1.7.46.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ service.errors.name | inline_errors }}
1.7.46.1.2. name

서비스 이름을 반환합니다.

1.7.46.1.3. system_name

서비스의 시스템 이름을 반환합니다.

{% case service.system_name %}
{% when 'api' %}
  API is our newest service!
{% when 'old' %}
  Unfortunately we dont allow more signups to our old service.
{% endcase %}
1.7.46.1.4. description

서비스에 대한 설명을 반환합니다.

1.7.46.1.5. 서브스크립션됨?

서비스가 서브스크립션되었는지 여부를 반환합니다.

{% if service.subscribed? %}
   <p>You already subscribed this service.</p>
{% endif %}
1.7.46.1.6. subscription

현재 로그인한 사용자가 이 서비스에 가입된 경우 해당 서비스(ServiceContract drop)를 반환합니다. 그렇지 않으면 Nil을 반환합니다.

{% if service.subscription %}
   Your applications for service {{ service.name }} are:
   {% for app in service.subscription.applications %}
     {{ app.name }}<br/>
   {% endfor %}
{% else %}
   <p>You are not subscribed to this.</p>
{% endif %}
1.7.46.1.7. Subscribable?
1.7.46.1.8. subscribe_url
1.7.46.1.9. application_plans

게시된 서비스 애플리케이션 계획 반환

{% for service in model.services %}
  <h4>{{ service.name }} application plans:</h4>
  <dl>
  {% for application_plan in service.application_plans %}
    <dt>{{ application_plan.name }}</dt>
    <dd>{{ application_plan.system_name }}</dd>
  {% endfor %}
  </dl>
{% endfor %}
1.7.46.1.10. service_plans

게시된 서비스 계획 서비스 계획 반환

<p>We offer following service plans:</p>
<dl>
{% for service in model.services %}
  {% for service_plan in service.service_plans %}
    <dt>{{ service_plan.name }}</dt>
    <dd>{{ service_plan.system_name }}</dd>
  {% endfor %}
{% endfor %}
</dl>
1.7.46.1.11. 계획

서비스 애플리케이션 계획 반환

1.7.46.1.12. 기능

서비스의 눈에 띄는 기능을 반환합니다.

{% if service.features.size > 0 %}
  <p>{{ service.name }} has following features:</p>
  <ul>
  {% for feature in service.features %}
    <li>{{ feature.name }}</li>
  {% endfor %}
  </ul>
{% else %}
  <p>Unfortunately, {{ service.name }} currently has no features.</p>
{% endif %}
1.7.46.1.13. apps_identifier

인증 모드 세트에 따라 OAuth 인증에 대해 'ID', 'API 키' 또는 'Client ID'를 반환합니다.

{{ service.application_key_name }}
1.7.46.1.14. backend_version
1.7.46.1.15. referrer_filters_required?
1.7.46.1.16. metrics

서비스의 지표를 반환합니다.

<p>On {{ service.name }} we measure following metrics:</p>
<ul>
{% for metric in service.metrics %}
  <li>{{ metric.name }}</li>
{% endfor %}
</ul>
1.7.46.1.17. support_email

서비스 이메일 지원

1.7.47. ServiceContract drop (up)

1.7.47.1. 방법
1.7.47.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ service_contract.errors.name | inline_errors }}
1.7.47.1.2. id
1.7.47.1.3. can_change_plan?

변경 가능한 경우 true를 반환합니다.Return true if any form of change is possible.

1.7.47.1.4. 평가판?

계약이 아직 시험 기간 내에 있는 경우 true를 반환합니다.

참고: 계획의 시험 기간을 변경하면 기존 계약에 영향을 미치지 않습니다.

1.7.47.1.5. 라이브입니까?
1.7.47.1.6. state

가능한 세 가지 상태는 다음과 같습니다.

    - pending
    - live
    - suspended
1.7.47.1.7. remaining_trial_period_days

아직 시험 기간에 남아 있는 날의 수입니다.

1.7.47.1.8. 계획

계약 계획을 반환합니다.

1.7.47.1.9. plan_change_permission_name

허용된 동작의 이름을 반환합니다.

1.7.47.1.10. plan_change_permission_warning

허용되는 동작의 경고 메시지를 반환합니다.

1.7.47.1.11. contract
1.7.47.1.12. name
1.7.47.1.13. system_name
1.7.47.1.14. change_plan_url
1.7.47.1.15. service
1.7.47.1.16. 애플리케이션
1.7.47.1.17. 수행 가능

해당 서브스크립션에 대한 현재 사용자의 특정 권한을 노출합니다.

{% if subscription.can.change_plan? %}
  ...
{% endif %}

1.7.48. SERVICEPLAN 드롭 (업)

1.7.48.1. 방법
1.7.48.1.1. 선택된 상태?

계획이 선택되어 있는지 여부를 반환합니다.

{% if plan.selected? %}
  <p>You will signup to {{ plan.name }}</p>
{% endif %}
1.7.48.1.2. 구매하셨습니까?

계획이 구매되었는지 여부를 반환합니다.

{% if plan.bought? %}
   <p>You are  on this plan already!</p>
{% endif %}
1.7.48.1.3. 기능

계획의 눈에 띄는 기능을 반환합니다.

{% if plan == my_free_plan %}
   <p>These plans are the same.</p>
{% else %}
   <p>These plans are not the same.</p>
{% endif %}
1.7.48.1.4. setup_fee

계획의 설정 값을 반환합니다.

1.7.48.1.5. name

계획의 이름을 반환합니다.

<h2>We offer you a new {{ plan.name }} plan!</h2>
1.7.48.1.6. system_name

계획의 시스템 이름을 반환합니다.

{% for plan in available_plans %}
  {% if plan.system_name == 'my_free_plan' %}

    <p>You will buy our only free plan!</p>
  {% endif %}
{% endfor %}
1.7.48.1.7. id

계획 ID를 반환합니다.

1.7.48.1.8. 무료?

이 계획은 유 가 아닌 경우 무료입니다. 유 료? 방법을 참조하십시오.

{% if plan.free? %}
   <p>This plan is free of charge.</p>
{% else %}

     <p>Plan costs</p>
     Setup fee {{ plan.setup_fee }}
     Flat cost {{ plan.flat_cost }}

{% endif %}
1.7.48.1.10. approval_required?

계획이 승인이 필요한지 여부를 반환합니다.

{% if plan.approval_required? %}
   <p>This plan requires approval.</p>
{% endif %}
1.7.48.1.11. flat_cost

계획의 월 고정 요금을 반환합니다.

1.7.48.1.12. service

예: 유동에서 서비스 계획 감소 사용

<p class="notice">The examples for plan drop apply here</p>
Service of this plan {{ plan.service.name }}

1.7.49. 시간대 드롭 (up)

1.7.49.1. 방법
1.7.49.1.1. full_name
1.7.49.1.2. to_str

1.7.50. 오늘 드롭 (up)

1.7.50.1. 방법
1.7.50.1.1. month

현재 월(1-12)을 반환합니다.

1.7.50.1.2. day

월의 현재 날짜를 반환 (1-31)

1.7.50.1.3. year

현재 연도의 예: 동적 저작권 생성

&copy;{{ today.year }}
1.7.50.1.4. beginning_of_month

현재 달의 시작 날짜를 반환합니다.

This month began on {{ today.beginning_of_month | date: '%A' }}

1.7.51. 주제 드롭 (up)

1.7.51.1. 방법
1.7.51.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ topic.errors.name | inline_errors }}
1.7.51.1.2. title
1.7.51.1.3. kind
1.7.51.1.4. url
1.7.51.1.5. description

1.7.52. 주제 드롭 (up)

1.7.52.1. 방법
1.7.52.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ topic.errors.name | inline_errors }}
1.7.52.1.2. title

주제의 이름입니다. 스레드에 처음 게시될 때 제출됩니다.

1.7.52.1.3. url

1.7.53. URL 드롭 (up)

1.7.53.1. 방법
1.7.53.1.1. to_s
1.7.53.1.2. to_str
1.7.53.1.3. title
1.7.53.1.4. current_or_subpath?

현재 페이지의 경로가 URL에 대한 경로와 같거나 URL의 직접 하위 경로인 경우, 즉 ID로 확장되는 경우 True입니다. 예를 들어 {{ urls.outbox }} 와 함께 이는 true를 반환합니다.

  • /admin/sent/messages/received
  • /admin/sent/messages/received/42

그러나 이러한 것은 아닙니다.

  • /admin/sent/messsages/new
  • /admin/sent/messsages/longer/subpath

'#active?', '#current?'

1.7.53.1.5. 현재?

URL 경로가 현재 경로와 동일한 경우 True.true if the URL path is the same as of the current. 매개 변수 및 기타 구성 요소는 고려하지 않습니다. #active?

{% assign url = urls.messages_inbox %}
<!-- => http://awesome.3scale.net/admin/messages/sent -->

<!-- Current page: http://awesome.3scale.net/admin/messages/sent?unread=1 -->
{{ url.current? }} => true

<!-- Current page: http://awesome.3scale.net/admin/messages -->
{{ url.current? }} => false
1.7.53.1.6. 활성 상태?

현재 페이지가 이 URL과 동일한 메뉴 구조에 있는 경우 True입니다. #current? 라고도 합니다.

{% assign url = urls.messages_inbox %}
<!-- => http://awesome.3scale.net/admin/messages/sent -->

<!-- Current page: http://awesome.3scale.net/admin/messages -->
{{ url.active? }} => true

<!-- Current page: http://awesome.3scale.net/admin/messages/trash -->
{{ url.active? }} => true

<!-- Current page: http://awesome.3scale.net/admin/stats -->
{{ url.active? }} => false

1.7.54. URL 드롭 (up)

1.7.54.1. 방법
1.7.54.1.1. 공급자
1.7.54.1.2. cas_login
<a href="{{ urls.signup }}">signup here</a>
<a href="{{ urls.service_subscription }}">subscribe to a service here</a>
1.7.54.1.3. new_application
1.7.54.1.4. signup

서명 페이지의 URL입니다. 모두를 위한 접근성.

<a href="{{ urls.signup }}?{{ service_plan | param_filter }}&{{ app_plan | param_filter }}" >Signup Now!</a>
1.7.54.1.6. login
1.7.54.1.7. logout
1.7.54.1.8. forgot_password
1.7.54.1.9. service_subscription

서비스 서브스크립션 페이지의 URL입니다. 로그인한 사용자만 사용할 수 있습니다.

<a href="{{ urls.service_subscription }}?{{ service_plan | param_filter }}" >
  Subscribe to service {{ service.name }}
</a>
1.7.54.1.10. compose_message

내부 메시징 시스템을 통해 개발자 연락처 공급자를 허용하는 페이지로 URL.

1.7.54.1.11. messages_outbox

개발자가 보낸 메시지 목록에 대한 URL입니다.

1.7.54.1.12. messages_trash
1.7.54.1.13. empty_messages_trash
1.7.54.1.14. credit_card_terms
1.7.54.1.15. credit_card_privacy
1.7.54.1.16. credit_card_refunds
1.7.54.1.17. 사용자
1.7.54.1.18. personal_details

사용자 계정 관리가 비활성화된 경우 URL 또는 Nil입니다. Audience > 계정 > 설정 > 사용 규칙 > 아래의 3scale 관리 포털에서 사용 규칙을 확인합니다.

1.7.54.1.19. access_details

API 키 및 기타 인증 정보가 있는 페이지입니다. 인증 전략에 따라 다릅니다.

1.7.54.1.20. payment_details
1.7.54.1.21. new_invitation

새 사용자 초대하기 위한 페이지

1.7.54.1.22. 초대

전송된 모든 초대 목록

1.7.54.1.23. 대시보드
1.7.54.1.24. 애플리케이션
1.7.54.1.25. api_access_details
1.7.54.1.26. services
1.7.54.1.27. messages_inbox

수신된 메시지 목록에 대한 URL입니다.

1.7.54.1.28. 통계
1.7.54.1.29. account_overview
1.7.54.1.30. account_plans
1.7.54.1.31. invoices

1.7.55. UsageLimit drop (up)

예: 유동에서 사용량 제한 사용

You cannot do more than {{ limit.value }} {{ limit.metric.unit }}s per {{ limit.period }}
1.7.55.1. 방법
1.7.55.1.1. 기간

사용 제한 기간을 반환합니다.

1.7.55.1.2. 메트릭

일반적으로 히트 이지만 모든 사용자 지정 방법이 될 수 있습니다.

1.7.55.1.3. value

사용 제한 값을 반환합니다.

1.7.56. 사용자 드롭 (up)

<h2>User {{ user.display_name }}</h2>
Account {{ user.account.name }}
Username {{ user.username }}
Email {{ user.email }}
Website {{ user.website }}
1.7.56.1. 방법
1.7.56.1.1. errors

실패한 제출 후 이 모델의 형식이 렌더링되면 발생한 오류가 반환됩니다.

{{ user.errors.name | inline_errors }}
1.7.56.1.2. admin?

사용자가 관리자인지 여부를 반환합니다.

{% if user.admin? %}
  <p>You are an admin of your account.</p>
{% endif %}
1.7.56.1.3. 사용자 이름

사용자 이름, html 이스케이프를 반환합니다.

1.7.56.1.4. 계정

사용자 계정을 반환합니다.

1.7.56.1.5. name

사용자의 첫 번째 및 성을 반환합니다.

1.7.56.1.6. email

사용자의 이메일을 반환합니다.

1.7.56.1.7. password_required?

이 방법은 Janrain, CAS 또는 기타 SSO(Single-sign-on) 방법을 통해 인증된 사용자에 대해 기본 제공 개발자 포털 인증 메커니즘을 사용하는 사용자에게 true 를 반환합니다.

{% if user.password_required? %}


{% endif %}
1.7.56.1.8. 섹션

사용자가 액세스할 수 있는 섹션 목록을 반환합니다.

{% if user.sections.size > 0 %}
  <p>You can access following sections of our portal:</p>
   <ul>
    {% for section in user.sections %}
      <li>{{ section }}</li>
    {% endfor %}
  </ul>
{% endif %}
1.7.56.1.9. role

사용자의 역할을 반환합니다.

1.7.56.1.10. roles_collection

사용자에게 사용 가능한 역할 목록 튜닝

{% for role in user.roles_collection %}
  <li>
    <label for="user_role_{{ role.key }}">

      {{ role.text&nbsp;}}
    </label>
    </li>
  {% endfor %}
1.7.56.1.11. url

사용자의 리소스 URL 반환

{{ 'Delete' | delete_button: user.url }}
1.7.56.1.12. edit_url

사용자를 편집하기 위한 URL 반환

{{ 'Edit' | link_to: user.edit_url, title: 'Edit', class: 'action edit' }}
1.7.56.1.13. 수행 가능

권한 메서드에 대한 액세스 권한 부여

{% if user.can.be_managed? %}
  <!-- do something -->
{% endif %}
1.7.56.1.14. extra_fields

이 사용자에 대한 값으로 hidden 추가 필드 반환 : 모든 추가 필드 출력

{% for field in user.extra_fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.56.1.15. 필드

이 사용자의 값을 가진 모든 필드를 반환 예: 모든 필드 인쇄

{% for field in user.fields %}
  {{ field.label }}: {{ field.value }}
{% endfor %}
1.7.56.1.16. builtin_fields

이 사용자에 대한 값이 있는 모든 내장 필드를 반환합니다.

1.8. 태그 (up)

1.8.1. 태그 'braintree_customer_form' (up)

Braintree Blue payment 게이트웨이에 필요한 데이터를 입력하는 양식을 렌더링합니다.

1.8.2. 태그 'csrf' (up)

교차 사이트 요청 forgery 메타 태그를 렌더링합니다.

예: 유동에서 csrf 태그 사용

  <head>
    {% csrf %}
  </head>

1.8.3. <content> (up)

페이지의 본문을 렌더링합니다. 레이아웃 내에서만 사용합니다.

1.8.4. 태그 'content_for' (up)

1.8.5. 태그 'debug' (up)

템플릿에서 사용할 수 있는 모든 정수 변수를 HTML 주석으로 인쇄합니다. 이 태그를 공용 템플릿에서 제거하는 것이 좋습니다.

`{% debug:help %}`

1.8.6. 태그 'email' (up)

email 태그를 사용하면 발신 이메일의 헤더를 사용자 지정할 수 있으며 이메일 템플릿 내에서만 사용할 수 있습니다.

작업을 단순화하는 cc 또는 subject (아래 표 참조)와 같은 몇 가지 편의 하위 태그는 있지만, 헤더 하위 태그를 사용하여 메시지에 임의의 SMTP 헤더를 설정할 수도 있습니다.

Subtag

설명

예제

제목

동적 주제

{% subject = 'Greeting from Example company!'" %}

cc

이산화탄소 복사

{% cc = 'boss@example.com' %}

bcc

장님의 탄소 복사

{% bcc = 'all@example.com' %}

from

실제 발신자

{% from = 'system@example.com' %}

reply-to

 

{% reply-to = 'support@example.com' %}

header

사용자 정의 SMTP 헤더

{% header 'X-SMTP-Group' = 'Important' %}

do_not_send

이메일 삭제

{% do_not_send %}

예: 조건부 맹일 탄소 사본

{% email %}
  {% if plan.system_name == 'enterprise' %}
     {% bcc 'marketing@world-domination.org' %}
  {% endif%}
{% endemail %}

예: 이메일 비활성화

{% email %}
  {% do_not_send %}
{% endemail %}

예: 이메일 서명 필터

{% email %}
  {% if plan.system == 'enterprise' %}
    {% subject = 'Greetings from Example company!' %}
    {% reply-to = 'support@example.com' %}
  {% else %}
    {% do_not_send %}
  {% endif %}
{% endemail %}

1.8.7. 태그 'flash' (up)

시스템의 정보 또는 오류 메시지를 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않으며 대신 FlashDrop을 사용합니다.

예: 액체에서 Flash 태그 사용

   {% flash %}

1.8.9. <form> (up)

양식의 이름에 따라 지정된 작업 및 클래스 특성으로 양식 태그를 렌더링합니다. 지원되는 양식은 다음과 같습니다.

form

허용되는 필드 이름

스팸 보호

참고

application.create

  • application[name]
  • application[description]
  • application[<any-extra-field>]

없음

 

application.update

  • application[name]
  • application[description]
  • application[<any-extra-field>]

없음

 

signup

  • account[org_name]
  • account[org_legaladdress]
  • account[org_legaladdress_cont]
  • account[city]
  • account[state]
  • account[zip]
  • account[telephone_number]
  • account[country_id]
  • account[<any-extra-field>]
  • account[user][username]
  • account[user][email]
  • account[user][first_name]
  • account[user][last_name]
  • account[user][password]
  • account[user][password_confirmation]
  • account[user][title]
  • account[user][<any-extra-field>]

있음

name plan_ids[] 와 함께 하나 이상의 숨겨진 필드를 추가하여 선택한 계획에 직접 서명합니다. 이러한 이름의 매개 변수가 현재 URL에 있는 경우 입력 필드가 자동으로 채워집니다.

예: 애플리케이션을 생성하는 양식

{% form 'application.create', application %}


   {{ application.errors.name | inline_errors }}


{% endform %}

1.8.10. 태그 'latest_forum_posts' (up)

최신 포럼 포스트가 있는 HTML 테이블입니다.

DEPRECATED: 대신 포럼 사용.

예: latest_forum_posts 태그 사용

{% latest_forum_posts %}

1.8.11. 태그 'latest_messages' (up)

html 조각을 사용자에 대한 최신 메시지로 렌더링합니다.

예: latest_messages 태그 유동 사용

{% latest_messages %}

1.8.13. <menu> (up)

DEPRECATED: 이 태그는 더 이상 사용되지 않으며 '{% include "menu" %}'를 사용하십시오.

1.8.14. 태그 'oldfooter' (up)

바닥글 html 조각을 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않습니다. 대신 개발자 포털을 부분적으로 사용하십시오.

1.8.15. 태그 'plan_widget' (up)

애플리케이션 계획을 검토하거나 변경할 위젯 포함

{% if application.can_change_plan? %}
  <a href="#choose-plan-{{ application.id }}"
     id="choose-plan-{{application.id}}">
    Review/Change
  </a>
  {% plan_widget application %}
{% endif %}

1.8.16. 태그 'portlet' (up)

이 태그에는 시스템 이름으로 포틀릿이 포함됩니다.

1.8.17. 태그 'submenu' (up)

로그인한 사용자에 대한 하위 메뉴 html 스니펫을 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않으며 대신 'submenu'을 사용합니다.

예: Liish에서 하위 메뉴 태그 사용

   {% submenu %}

1.8.18. 태그 '3scale_essentials' (up)

1.8.19. 태그 'user_widget' (up)

사용자 위젯 html 스니펫을 렌더링합니다.

DEPRECATED: 이 태그는 더 이상 사용되지 않습니다. 대신 개발자 포털을 부분적으로 사용하십시오.

예: 유동성에서 user_widget 태그 사용

   {% user_widget %}
    <p class="notice">If you are logged in you see profile related links above.</p>
    <p class="notice">If you are not login you are invited to login or signup.</p>

1.9. 필터 (up)

1.9.1. FormHelpers 필터 (up)

1.9.1.1. error_class filter

If argument is not empty Example: Using error_class to show an error class

1.9.1.2. inline_errors 필터

예에 인라인으로 오류 필드를 출력합니다. inline_errors를 사용하여 인라인 오류를 표시

{{ form.errors.description | inline_errors }}

1.9.2. ParamFilter 필터 (up)

1.9.2.1. to_param 필터

가능한 경우 제공된 drop을 URL 매개 변수로 변환합니다. 예: liquid에서 to_param 필터 사용

<h2>Signup to a service</h2>
<a href="{{ urls.signup }}?{{ service | to_param }}">Signup to {{ service.name }}</a>

1.9.3. 일반 필터 (up)

1.9.3.1. group_by 필터

일부 주요 키의 그룹 수집 예: 서비스별 그룹 애플리케이션

{% assign grouped = applications | group_by: 'service' %}
{% for group in grouped %}
  Service: {{ group[0 }}
  {% for app in group[1] %}
    Application: {{ app.name }}
  {% endfor %}
{% endfor %}
1.9.3.2. 모든 필터

컬렉션의 문자열이 매개변수 예와 동일한 경우 true: 현재 계정의 보류 중인 애플리케이션이 있습니까?

{% assign has_pending_apps = current_account.applications | map: 'state' | any: 'live' %}
1.9.3.4. javascript_include_tag filter

JavaScript include tag

1.9.3.5. IMAGE_TAG 필터

매개변수를 src 속성으로 사용하여 태그를 출력합니다.

{{ 'http://example.com/cool.gif' | image_tag }}
## =>
1.9.3.6. mail_to filter

이메일 주소를 'mailto' 링크로 변환합니다.

{{ 'me@there.is' | mail_to }}
## => <a href="mailto:me@there.is">me@there.is</a>
1.9.3.7. html_safe filter

콘텐츠를 HTML 안전한 것으로 표시하므로 이스케이프되지 않습니다.

1.9.3.8. 복수 필터

단어에서 복수형으로 변환

1.9.3.9. delete_button 필터

URL에 있는 리소스를 삭제하는 버튼을 생성합니다. 첫 번째 매개변수는 URL이고, 두 번째는 제목입니다. HTML 태그 속성을 세 번째 매개 변수로 추가할 수도 있습니다.

{{ 'Delete Message' | delete_button: message.url, class: 'my-button' }}
1.9.3.10. delete_button_ajax filter

AJAX를 사용하여 URL에 있는 리소스를 삭제하는 버튼을 생성합니다. 첫 번째 매개변수는 URL이고, 두 번째는 제목입니다.

{{ 'Delete Message' | delete_button_ajax: message.url }}
1.9.3.11. update_button 필터

URL에 있는 리소스를 '업데이트'(HTTP PUT 요청)하는 버튼을 생성합니다. 첫 번째 매개변수는 URL이고, 두 번째는 제목입니다. HTML 태그 속성을 세 번째 매개 변수로 추가할 수도 있습니다.

{{ 'Resend' | update_button: message.url, class: 'my-button' }}
1.9.3.12. create_button 필터

URL에 있는 리소스를 생성하는 버튼을 생성합니다. 첫 번째 매개변수는 URL이고, 두 번째는 제목입니다.

{{ 'Create Message' | create_button: message.url }}
1.9.3.13. create_button_ajax 필터
1.9.3.14. regenerate_oauth_secret_button filter
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.