Put the import + src on same line for brevity

This commit is contained in:
Tom Coleman
2016-03-18 10:24:01 +11:00
parent ea4ddea6a4
commit fa2cae29d3
2 changed files with 17 additions and 10 deletions

View File

@@ -5,17 +5,19 @@
</div>
<a class="name selflink" href="{{link}}">{{{name}}}</a>
{{#if importName}}
<code class="subtext">import { {{importName}} } from 'meteor/{{module}}'</code>
{{/if}}
{{#if fullApi}}
{{#if filepath}}
<a class="subtext src-code" href="https://github.com/meteor/meteor/blob/master/packages/{{filepath}}#L{{lineno}}" target="_blank">
{{filepath}}, line {{lineno}}
</a>
<div class="subtext">
{{#if importName}}
<code>import { {{importName}} } from 'meteor/{{module}}'</code>
{{/if}}
{{/if}}
{{#if fullApi}}
{{#if filepath}}
<a class="src-code" href="https://github.com/meteor/meteor/blob/master/packages/{{filepath}}#L{{lineno}}" target="_blank">
({{filepath}}, line {{lineno}})
</a>
{{/if}}
{{/if}}
</div>
</h3>
</template>

View File

@@ -325,6 +325,11 @@ ol {
font-weight: normal;
}
.api-title .subtext > code {
font-size: 11px;
margin-right: 12px;
}
.api-title .src-code {
color: #20338A !important;
border-bottom: none !important;