Skip to content

Commit

Permalink
feature <title> for endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
razum2um committed Jun 24, 2015
1 parent 6fffae3 commit 01c8fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/lurker/presenters/endpoint_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def to_html(options={})
@endpoint_presenter = self
@url_params = endpoint.url_params
@post_params = example_request.json
@title = "#{service_presenter.title} | #{title}"
render('show', options)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/lurker/templates/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><%= @service_presenter.title %></title>
<title><%= @title || @service_presenter.title %></title>
<link href="<%= @service_presenter.html_directory %>/application-<%= @service_presenter.options['css'] %>.css" media="all" rel="stylesheet">
<style type="text/css">
@font-face {
Expand Down

0 comments on commit 01c8fab

Please sign in to comment.