"The total size of this project's repository #{show_lfs} will be limited to this size. 0 for unlimited. Leave empty to inherit the group/global value."
message=_('Your subscription will expire in %{remaining_days}')%{remaining_days: remaining_days}
end
message=content_tag(:strong,message)
content_tag(:p,message,class: 'mb-2')
end
defexpiration_blocking_message
return''unlesscurrent_license.will_block_changes?
plan_name=current_license.plan.titleize
strong="<strong>".html_safe
strong_close="</strong>".html_safe
ifcurrent_license.expired?
ifcurrent_license.block_changes?
message=_('You didn\'t renew your %{strong}%{plan_name}%{strong_close} subscription so it was downgraded to the GitLab Core Plan.')%{plan_name: plan_name,strong: strong,strong_close: strong_close}
message=_('No worries, you can still use all the %{strong}%{plan_name}%{strong_close} features for now. You have %{remaining_days} to renew your subscription.')%{plan_name: plan_name,remaining_days: remaining_days,strong: strong,strong_close: strong_close}
end
else
message=_('Your %{strong}%{plan_name}%{strong_close} subscription will expire on %{strong}%{expires_on}%{strong_close}. After that, you will not to be able to create issues or merge requests as well as many other features.')%{expires_on: current_license.expires_at.strftime("%Y-%m-%d"),plan_name: plan_name,strong: strong,strong_close: strong_close}
=_(' %{start} to %{end}')%{start: @license.starts_at,end: @license.expires_at}
\.
=_('The %{link_start}true-up model%{link_end} allows having more users, and additional users will incur a retroactive charge on renewal.').html_safe%{link_start: true_up_link_start,link_end: link_end}
_('You didn\'t renew your %{strong}%{plan_name}%{strong_close} subscription for %{strong}%{namespace_name}%{strong_close} so it was downgraded to the free plan.')%{plan_name: plan_name,strong: strong,strong_close: strong_close,namespace_name: namespace.name}
else
_('You didn\'t renew your %{strong}%{plan_name}%{strong_close} subscription so it was downgraded to the GitLab Core Plan.')%{plan_name: plan_name,strong: strong,strong_close: strong_close}
_('No worries, you can still use all the %{strong}%{plan_name}%{strong_close} features for now. You have %{remaining_days} to renew your subscription.')%{plan_name: plan_name,remaining_days: remaining_days,strong: strong,strong_close: strong_close}
end
end
defexpiring_message
ifnamespace
_('Your %{strong}%{plan_name}%{strong_close} subscription for %{strong}%{namespace_name}%{strong_close} will expire on %{strong}%{expires_on}%{strong_close}. After that, you will not to be able to create issues or merge requests as well as many other features.')%{expires_on: subscribable.expires_at.strftime("%Y-%m-%d"),plan_name: plan_name,strong: strong,strong_close: strong_close,namespace_name: namespace.name}
else
_('Your %{strong}%{plan_name}%{strong_close} subscription will expire on %{strong}%{expires_on}%{strong_close}. After that, you will not to be able to create issues or merge requests as well as many other features.')%{expires_on: subscribable.expires_at.strftime("%Y-%m-%d"),plan_name: plan_name,strong: strong,strong_close: strong_close}
expect(subject).tohave_text('Your subscription will expire in 4 days')
end
it'has an expiration blocking message'do
Timecop.freeze(today)do
expect(subject).tohave_text('Your Ultimate subscription will expire on 2020-03-09. After that, you will not to be able to create issues or merge requests as well as many other features.')
expect(subject).toinclude('Your subscription will expire in 4 days')
end
end
context'without namespace'do
it'has an expiration blocking message'do
Timecop.freeze(today)do
expect(subject).toinclude('Your Ultimate subscription will expire on 2020-03-09. After that, you will not to be able to create issues or merge requests as well as many other features.')
expect(subject).toinclude('Your Ultimate subscription for No Limit Records will expire on 2020-03-09. After that, you will not to be able to create issues or merge requests as well as many other features.')
msgid "You didn't renew your %{strong}%{plan_name}%{strong_close} subscription for %{strong}%{namespace_name}%{strong_close} so it was downgraded to the free plan."
msgstr ""
msgid "You didn't renew your %{strong}%{plan_name}%{strong_close} subscription so it was downgraded to the GitLab Core Plan."
msgstr ""
...
...
@@ -23770,6 +23773,9 @@ msgstr ""
msgid "YouTube"
msgstr ""
msgid "Your %{strong}%{plan_name}%{strong_close} subscription for %{strong}%{namespace_name}%{strong_close} will expire on %{strong}%{expires_on}%{strong_close}. After that, you will not to be able to create issues or merge requests as well as many other features."
msgstr ""
msgid "Your %{strong}%{plan_name}%{strong_close} subscription will expire on %{strong}%{expires_on}%{strong_close}. After that, you will not to be able to create issues or merge requests as well as many other features."