<head>
    <title>Cothink</title>
</head>

<body>
    <div class="container">
        <header>
        <h1>CoThink</h1>
            {{> loginButtons}}
            {{#if currentUser}}
                <form class="new-item">
                    <input type="text" name="text" placeholder="Type to add new items" />
                </form>
            {{/if}}
        </header>

        <div>
            <ul>
                {{#each items}}
                    <li>
                        {{#linkTo route='item'}}
                            {{this.title}}
                        {{/linkTo}}
                    </li>
                {{/each}}
            </ul>
        </div>
    </div>
</body>

<template name="item">
    <div class="item" id="{{_id}}">
        <div class="item-header">
            <div contentEditable="true" class="item-title" name="title" type="text">{{{title}}}</div>
            <button class="delete">&times;</button>
            <button class="hide">H</button>
            <em class="item-author">{{username}}</em>
        </div>
        <br>
        <div contentEditable="true" class="item-text-editor">{{{text}}}</div>
    </div>
</template>

<head>
    <title>Cothink</title>
</head>

<body>
    <div class="container">
        <header>
        <h1>CoThink</h1>
            {{> loginButtons}}
            {{#if currentUser}}
                <form class="new-item">
                    <input type="text" name="text" placeholder="Type to add new items" />
                </form>
            {{/if}}
        </header>

        <div>
            <ul>
                {{#each items}}
                    <li>
                        {{#linkTo route='item'}}
                            - {{this.title}} -
                        {{/linkTo}}
                    </li>
                {{/each}}
            </ul>
        </div>
    </div>
</body>

<template name="item">
    <div class="item" id="{{_id}}">
        <div class="item-header">
            <div contentEditable="true" class="item-title" name="title" type="text">{{{title}}}</div>
            <button class="delete">&times;</button>
            <button class="hide">H</button>
            <em class="item-author">{{username}}</em>
        </div>
        <br>
        <div contentEditable="true" class="item-text-editor">{{{text}}}</div>
    </div>
</template>

Fix unclickableness of titleless items
Fix unclickableness of titleless items
