From: Gabriel Dunne Date: Sun, 18 Dec 2011 17:01:18 +0000 (-0800) Subject: expanding description, tags X-Git-Tag: v0.1~58 X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=7255ce97f66f5cf8dfed10a1560eed29738ce2a1;p=clmpr.git expanding description, tags --- diff --git a/clmpr.sql b/clmpr.sql index 4fd7446..ac03432 100644 --- a/clmpr.sql +++ b/clmpr.sql @@ -1,30 +1,32 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; --- Database: `clmpr` +-- Database Name: `clmpr` - --- Table structure for table `clumps` - -CREATE TABLE IF NOT EXISTS `clumps` ( +CREATE TABLE `clumps` ( `id` int(9) NOT NULL AUTO_INCREMENT, `user_id` int(9) NOT NULL, `title` varchar(255) NOT NULL, `url` varchar(255) NOT NULL DEFAULT '', + `description` text NOT NULL, `tags` text NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +CREATE TABLE `tags` ( + `id` int(9) NOT NULL AUTO_INCREMENT, + `tag` varchar(255) NOT NULL, + `count` int(9) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `tag` (`tag`) +) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; --- Table structure for table `users` - -CREATE TABLE IF NOT EXISTS `users` ( +CREATE TABLE `users` ( `id` int(9) NOT NULL AUTO_INCREMENT, `user` varchar(255) NOT NULL, `pass` varchar(255) NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user` (`user`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - +) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; diff --git a/get.php b/get.php index 730f871..34679a9 100644 --- a/get.php +++ b/get.php @@ -76,27 +76,23 @@ case 'xml' :
  • - + + + + -   - - by - - - - + + + by + + + ?> - -

    - -

    - +
    + + +

    + +

    + + +
      + +
    • + +
    + +
  • diff --git a/style.css b/style.css index b29a841..971a6c1 100644 --- a/style.css +++ b/style.css @@ -56,12 +56,31 @@ ul.links li span.meta a { color:#999; } ul.links li p.desc { - margin:1em 0 1em 2em; + margin:0; + /*display:none;*/ +} +ul.links li .expand { display:none; + margin:0 0 1em 1em; } -ul.links li.expand p.desc { +ul.links li.expand .expand { display:block; } +ul.links li.expand p.desc { + /*display:block;*/ +} +ul.links li .less { + display:none; +} +ul.links li .more { + display:inline; +} +ul.links li.expand .more { + display:none; +} +ul.links li.expand .less { + display:inline; +} .delete { font-weight:bold;